Skip to content

Latest commit

 

History

History
120 lines (95 loc) · 4.83 KB

ns-virtdisk-virtual_disk_progress.md

File metadata and controls

120 lines (95 loc) · 4.83 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:virtdisk._VIRTUAL_DISK_PROGRESS
VIRTUAL_DISK_PROGRESS (virtdisk.h)
Contains the progress and result data for the current virtual hard disk (VHD) operation, used by the GetVirtualDiskOperationProgress function.
*PVIRTUAL_DISK_PROGRESS
PVIRTUAL_DISK_PROGRESS
PVIRTUAL_DISK_PROGRESS structure pointer [VHD]
VIRTUAL_DISK_PROGRESS
VIRTUAL_DISK_PROGRESS structure [VHD]
_VIRTUAL_DISK_PROGRESS
vdssys/PVIRTUAL_DISK_PROGRESS
vdssys/VIRTUAL_DISK_PROGRESS
vhd.virtual_disk_progress
virtdisk/PVIRTUAL_DISK_PROGRESS
virtdisk/VIRTUAL_DISK_PROGRESS
vhd\virtual_disk_progress.htm
VStor
834d7384-09fe-493e-8402-135c453a1ecf
12/05/2018
*PVIRTUAL_DISK_PROGRESS, PVIRTUAL_DISK_PROGRESS, PVIRTUAL_DISK_PROGRESS structure pointer [VHD], VIRTUAL_DISK_PROGRESS, VIRTUAL_DISK_PROGRESS structure [VHD], _VIRTUAL_DISK_PROGRESS, vdssys/PVIRTUAL_DISK_PROGRESS, vdssys/VIRTUAL_DISK_PROGRESS, vhd.virtual_disk_progress, virtdisk/PVIRTUAL_DISK_PROGRESS, virtdisk/VIRTUAL_DISK_PROGRESS
virtdisk.h
Windows
Windows 7
Windows Server 2008 R2
Windows
VIRTUAL_DISK_PROGRESS, *PVIRTUAL_DISK_PROGRESS
19H1
_VIRTUAL_DISK_PROGRESS
virtdisk/_VIRTUAL_DISK_PROGRESS
PVIRTUAL_DISK_PROGRESS
virtdisk/PVIRTUAL_DISK_PROGRESS
VIRTUAL_DISK_PROGRESS
virtdisk/VIRTUAL_DISK_PROGRESS
c++
APIRef
kbSyntax
HeaderDef
VirtDisk.h
vdssys.h
VIRTUAL_DISK_PROGRESS

VIRTUAL_DISK_PROGRESS structure

-description

Contains the progress and result data for the current virtual hard disk (VHD) operation, used by the GetVirtualDiskOperationProgress function.

-struct-fields

-field OperationStatus

A system error code status value, this member will be ERROR_IO_PENDING if the operation is still in progress; otherwise, the value is the result code of the completed operation.

-field CurrentValue

The current progress of the operation, used in conjunction with the CompletionValue member.

This value is meaningful only if OperationStatus is ERROR_IO_PENDING.

-field CompletionValue

The value that the CurrentValue member would be if the operation were complete.

This value is meaningful only if OperationStatus is ERROR_IO_PENDING.

-remarks

The CurrentValue and CompletionValue members are intended to be used for calculating a percentage value, and the specific numeric values of each are not significant in any way. Only the result of the following calculation is meaningful: CurrentValue divided by CompletionValue multiplied by 100 equals percent complete, up to and including 100 percent, even when OperationStatus is still returning ERROR_IO_PENDING. This percentage is not always guaranteed to increase with subsequent calls to the GetVirtualDiskOperationProgress function, and may decrease. These decreased percentages may be safely ignored if progress tracking is desired to be only in the positive by locally storing the current maximum percentage.

The CurrentValue and CompletionValue members can vary in subsequent calls to the GetVirtualDiskOperationProgress function, so they must be used together at the same time from the same call. That is, it is not valid to save either of them locally and then make another call to the GetVirtualDiskOperationProgress function expecting to use either of the previous values with the other value from the more recent call.

The OperationStatus member is the indicator of completion, not the percent-complete calculation described previously. As long as this data member is returning with an ERROR_IO_PENDING status code, the I/O operation is not yet complete.

-see-also

About VHD

GetVirtualDiskOperationProgress

VHD Reference