IGPMAsyncProgress::Status method

The server calls this method to notify the client about the status of a Group Policy Management Console (GPMC) operation.

Syntax

HRESULT Status(
  long                    lProgressNumerator,
  long                    lProgressDenominator,
  HRESULT                 hrStatus,
  VARIANT                 *pResult,
  IGPMStatusMsgCollection *ppIGPMStatusMsgCollection
);

Parameters

lProgressNumerator

Numerator of a fraction that represents the percent of the GPMC operation that is complete.

lProgressDenominator

Denominator of a fraction that represents the percent of the GPMC operation that is complete. The value of this parameter is proportional to the number of extensions in the Group Policy object (GPO), whether the GPO is a "live" GPO or a backed-up GPO. This value can be used to display the progress bar to the user.

In the GPMC user interface, the progress bar is divided into lProgressDenominator intervals. When lProgressNumerator==lProgressDenominator the operation is complete.

hrStatus

Status of the operation. If no error occurred, the value of the parameter is S_OK.

pResult

Result of the operation. This parameter is an interface pointer to the object that resulted from the GPMC operation. For example, it may be a pointer to a GPMGPO object or to a GPMBackup object. This object is only returned when the operation is complete.

ppIGPMStatusMsgCollection

A pointer to the IGPMStatusMsgCollection interface that contains detailed status information about the operation. In cases where there are no errors, or if there are no detailed messages, Status passes in a null collection.

Return Value

This method has no return values.

Remarks

This method must be implemented by the client.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See Also

IGPMAsyncCancel

IGPMAsyncProgress