GetVirtualDiskOperationProgress function

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

VirtualDiskHandle [in]

A valid handle to a virtual disk with a pending asynchronous operation.

Overlapped [in]

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.

Progress [out]

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

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Header

VirtDisk.h (include Windows.h)

Library

VirtDisk.lib

DLL

VirtDisk.dll

See also

About VHD
VHD Reference
VIRTUAL_DISK_PROGRESS

 

 

Show: