ApplySnapshotVhdSet function (virtdisk.h)

Applies a snapshot of the current virtual disk for VHD Set files.

Syntax

DWORD ApplySnapshotVhdSet(
  [in] HANDLE                                  VirtualDiskHandle,
  [in] const PAPPLY_SNAPSHOT_VHDSET_PARAMETERS Parameters,
  [in] APPLY_SNAPSHOT_VHDSET_FLAG              Flags
);

Parameters

[in] VirtualDiskHandle

A handle to an open virtual disk. For information on how to open a virtual disk, see the OpenVirtualDisk function.

[in] Parameters

A pointer to a valid APPLY_SNAPSHOT_VHDSET_PARAMETERS structure that contains snapshot data.

[in] Flags

A valid combination of values of the APPLY_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 2012 [desktop apps only]
Target Platform Windows
Header virtdisk.h
Library VirtDisk.lib
DLL VirtDisk.dll

See also

VHD Functions