Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deletes a snapshot from a VHD Set file.
Syntax
DWORD DeleteSnapshotVhdSet(
[in] HANDLE VirtualDiskHandle,
[in] const PDELETE_SNAPSHOT_VHDSET_PARAMETERS Parameters,
[in] DELETE_SNAPSHOT_VHDSET_FLAG Flags
);
Parameters
[in] VirtualDiskHandle
A handle to the open virtual disk. This must be a VHD Set file.
[in] Parameters
A pointer to a valid DELETE_SNAPSHOT_VHDSET_PARAMETERS structure that contains snapshot deletion data.
[in] Flags
Snapshot deletion flags, which must be a valid combination of the DELETE_SNAPSHOT_VHDSET_FLAG enumeration.
Return value
Status of the request.
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is an error code. For more information, see System Error Codes.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 10 [desktop apps only] |
| Minimum supported server | Windows Server 2016 [desktop apps only] |
| Target Platform | Windows |
| Header | virtdisk.h |
| Library | VirtDisk.lib |
| DLL | VirtDisk.dll |