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.
Creates a snapshot of the current virtual disk for VHD Set files.
Syntax
DWORD TakeSnapshotVhdSet(
[in] HANDLE VirtualDiskHandle,
[in] const PTAKE_SNAPSHOT_VHDSET_PARAMETERS Parameters,
[in] TAKE_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 TAKE_SNAPSHOT_VHDSET_PARAMETERS structure that contains snapshot data.
[in] Flags
Snapshot flags, which must be a valid combination of the TAKE_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 |