IGPMGPO::GenerateReportToFile method
Gets the report for a GPO and then saves the report to a file in a specified path.
Syntax
HRESULT GenerateReportToFile( [in] GPMReportType gpmReportType, [in] BSTR bstrTargetFilePath, [out] IGPMResult **ppIGPMResult, [in] BSTR TargetFile );
Parameters
- gpmReportType [in]
-
Specifies whether the report is in XML or HTML.
- bstrTargetFilePath [in]
-
Binary string that contains the path of the file in which the report is being saved. Use a 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.
- TargetFile [in]
-
Binary string that contains the path of the file in which the report is being saved.
Return value
C++
Returns S_OK if successful. Returns a failure code if an error occurs.
JScript
Returns a reference to a GPMResult object.
Note The value of the Result property is indeterminate and should not be relied upon.
VB
Returns a reference to a GPMResult object.
Note The value of the Result property is indeterminate and should not be relied upon.
Requirements
|
Minimum supported client | Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 [desktop apps only] |
|
Redistributable | GPMC on Windows Server 2003 or Windows XP with SP1 |
|
Header |
|
|
IDL |
|
|
DLL |
|
|
IID |
IID_IGPMGPO is defined as 58CC4352-1CA3-48E5-9864-1DA4D6E0D60F |
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012
