IGPMBackup::GenerateReport method

Gets the report for the backup Group Policy object (GPO).

Syntax


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

Parameters

gpmReportType [in]

Specifies whether the report is in XML or HTML.

pvarGPMProgress [in, optional]

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, andpvarGPMCancel returns a pointer to IGPMAsyncCancel .

pvarGPMCancel [out, optional]

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

ppIGPMResult [out]

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

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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Gpmgmt.h

IDL

Gpmgmt.idl

DLL

Gpmgmt.dll

IID

IID_IGPMBackup is defined as D8A16A35-3B0D-416B-8D02-4DF6F95A7119

See also

IGPMBackup
IGPMBackupCollection
IGPMBackupDir

 

 

Show: