IGPMStarterGPOBackup::GenerateReport method

The GenerateReport method gets the report for the backup 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. If pvarGPMProgress is null, the call to GenerateReport is handled synchronously. If not null, the call to GenerateReport is handled asynchronously and pvarGPMCancel returns a pointer to IGPMAsyncCancel.

pvarGPMCancel

Pointer to an IGPMAsyncCancel interface. A value for this parameter is returned only when pvarGPMProgress is specified and is not null.

ppIGPMResult

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

Return Value

C++

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

JScript

Returns a reference to a GPMResult object.

VB

Returns a reference to a GPMResult object.

Requirements

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

See Also

IGPMBackupDirEx

IGPMStarterGPOBackup

IGPMStarterGPOBackupCollection