GetVirtualDiskOperationProgress function (virtdisk.h)
Checks the progress of an asynchronous virtual hard disk (VHD) operation.
Syntax
DWORD GetVirtualDiskOperationProgress(
[in] HANDLE VirtualDiskHandle,
[in] LPOVERLAPPED Overlapped,
[out] PVIRTUAL_DISK_PROGRESS Progress
);
Parameters
[in] VirtualDiskHandle
A valid handle to a virtual disk with a pending asynchronous operation.
[in] Overlapped
A pointer to a valid OVERLAPPED structure. This parameter must reference the same structure previously sent to the virtual disk operation being checked for progress.
[out] Progress
A pointer to a VIRTUAL_DISK_PROGRESS structure that receives the current virtual disk operation progress.
Return value
Status of the request.
If the function succeeds, the return value is ERROR_SUCCESS and the Progress parameter will be populated with the current virtual disk operation progress.
If the function fails, the return value is an error code and the value of the Progress parameter is undefined. For more information, see System Error Codes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 |
Minimum supported server | Windows Server 2008 R2 |
Target Platform | Windows |
Header | virtdisk.h |
Library | VirtDisk.lib |
DLL | VirtDisk.dll |