The GetProgress method, in Configuration Manager, gets the software update installation progress.
[IDL] HRESULT GetProgress( VARIANT* pvarUpdateStatus, VARIANT* pvarPercentComplete, VARIANT* pvarError ); |
Parameters
- pvarUpdateStatus
- Data type: VARIANTQualifiers: [in, out]Pointer to an
unsigned long value in a variant giving the current progress status
of the update. Possible values are shown below. This parameter must
not be set to a null pointer.
- ciJobStateNone
- ciJobStateAvailable
- ciJobStateSubmitted
- ciJobStateDetecting
- ciJobStateDownloadingCIDef
- ciJobStateDownloadingSdmPkg
- ciJobStatePreDownload
- ciJobStateDownloading
- ciJobStateWaitInstall
- ciJobStateInstalling
- ciJobStatePendingSoftReboot
- ciJobStatePendingHardReboot
- ciJobStateWaitReboot
- ciJobStateVerifying
- ciJobStateInstallComplete
- ciJobStateError
- ciJobStateWaitServiceWindow
- ciJobStateNone
- pvarPercentComplete
- Data type: VARIANTQualifiers: [in, out]Pointer to the percentage complete of the status provided in parameter pvarUpdateStatus. The pvarPercentComplete parameter must not be set to a null pointer.
- pvarError
- Data type: VARIANTQualifiers: [in, out]Pointer to an actual error code if pvarUpdateStatus is set to ciJobStateError. For other status values, this parameter can be ignored. It must not be set to a null pointer.
Return Values
An HRESULT code. Possible values include, but are not limited to, the following:
- S_OK
- The method succeeded.
Requirements
Runtime Requirements
For more information, see Configuration Manager Client Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Client Development Requirements.
See Also
Send comments about this topic to Microsoft.