IGroupPolicyObject::GetPropertySheetPages method

The GetPropertySheetPages method retrieves the property sheet pages associated with the GPO.

Syntax

HRESULT GetPropertySheetPages(
  HPROPSHEETPAGE **hPages,
  UINT           *uPageCount
);

Parameters

hPages

Address of the pointer to an array of property sheet pages.

uPageCount

Receives the number of pages in the property sheet array.

Return Value

If the method succeeds, the return value is S_OK. Otherwise, the method returns one of the COM error codes defined in the Platform SDK header file WinError.h.

Remarks

This method allocates memory for the array with the LocalAlloc function. When you are finished with the property sheet pages, free the array using the LocalFree function.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header gpedit.h
DLL Gpedit.dll

See Also

Group Policy Interfaces

Group Policy Overview

IGroupPolicyObject