IGPMStarterGPO::GenerateReport method

Gets the report for the Starter GPO.

Syntax

HRESULT GenerateReport(
  GPMReportType gpmReportType,
  VARIANT       *pvarGPMProgress,
  VARIANT       *pvarGPMCancel,
  IGPMResult    **ppIGPMResult
);

Parameters

gpmReportType

Specifies whether the report is in XML or HTML.

pvarGPMProgress

Pointer to an IGPMAsyncProgress interface that allows the client to receive status notifications about the progress of the copy operation. If not NULL, the call to GenerateReport is handled asynchronously and pvarGPMCancel receives a pointer to an IGPMAsyncCancel interface. If this parameter is NULL the call to GenerateReport is handled synchronously. The pvarGPMProgress parameter must be NULL if the client should not receive asynchronous notifications.

pvarGPMCancel

Receives a pointer to an IGPMAsyncCancel interface that the client can use to cancel the copy operation. This parameter is not returned if pvarGPMProgress is NULL.

ppIGPMResult

Pointer to an IGPMResult. The Result property contains a binary string of XML or HTML. The Status property contains a reference to an IGPMStatusMsgCollection.

Return Value

Returns S_OK if successful. Returns a failure code if an error occurs.

Requirements

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

See Also

IGPMStarterGPO