ModifyVhdSet function (virtdisk.h)

Modifies the internal contents of a virtual disk file. Can be used to set the active leaf, or to fix up snapshot entries.

Syntax

DWORD ModifyVhdSet(
  [in] HANDLE                          VirtualDiskHandle,
  [in] const PMODIFY_VHDSET_PARAMETERS Parameters,
  [in] MODIFY_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 MODIFY_VHDSET_PARAMETERS structure that contains modification data.

[in] Flags

Modification flags, which must be a valid combination of the MODIFY_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

   
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