IGPMStarterGPO::GenerateReport method (gpmgmt.h)

Gets the report for the Starter GPO.

Syntax

HRESULT GenerateReport(
  [in]           GPMReportType gpmReportType,
  [in, optional] VARIANT       *pvarGPMProgress,
  [in, optional] VARIANT       *pvarGPMCancel,
  [out]          IGPMResult    **ppIGPMResult
);

Parameters

[in] gpmReportType

Specifies whether the report is in XML or HTML.

[in, optional] 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.

[in, optional] 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.

[out] 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

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See also

IGPMStarterGPO