IGPMStarterGPO::GenerateReportToFile method

The GenerateReportToFile method gets the report for the GPO and saves it to a file at a specified path.

Syntax


HRESULT GenerateReportToFile(
  [in]  GPMReportType gpmReportType,
  [in]  BSTR          bstrTargetFilePath,
  [out] IGPMResult    **ppIGPMResult
);

Parameters

gpmReportType [in]

Specifies whether the report is in XML or HTML.

bstrTargetFilePath [in]

Binary string that contains the path to the file where the report is being saved. Use null-terminated string.

ppIGPMResult [out]

Pointer to an IGPMResult interface. The Status property contains a reference to an IGPMStatusMsgCollection.

Note  The value of the Result property of the IGPMResult interface is indeterminate and should not be relied upon.
 

Return value

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

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

IDL

Gpmgmt.idl

DLL

Gpmgmt.dll

IID

IID_IGPMStarterGPO is defined as DFC3F61B-8880-4490-9337-D29C7BA8C2F0

See also

IGPMStarterGPO

 

 

Show: