Group: Virtual Hard Disk (Win7) - Library: virtdisk
Detaches a virtual hard disk (VHD) by locating an appropriate VHD provider to accomplish the operation.
DWORD DetachVirtualDisk(
__in HANDLE VirtualDiskHandle,
__in DETACH_VIRTUAL_DISK_FLAG Flags,
__in ULONG ProviderSpecificFlags
); DECLARE LONG DetachVirtualDisk IN virtdisk;
INTEGER VirtualDiskHandle,;
INTEGER VirtualDiskFlags,;
LONG ProviderSpecificFlags VirtualDiskHandle [in] A handle to an open virtual disk, which must have been opened using the VIRTUAL_DISK_ACCESS_DETACH flag.
Flags [in] A valid combination of values of the DETACH_VIRTUAL_DISK_FLAG enumeration.
ProviderSpecificFlags [in] Flags specific to the type of virtual disk being detached. May be zero if none are required.
If the function succeeds, the return value is ERROR_SUCCESS (0).
See also: AttachVirtualDisk, OpenVirtualDisk.
Home