Directory Services

IDsAdminNewObjExt::AddPages

The IDsAdminNewObjExt::AddPages method is called to enable the object creation wizard extension to add the desired pages to the wizard.

HRESULT AddPages( 
  LPFNADDPROPSHEETPAGE lpfnAddPage,
  LPARAM lParam
);

Parameters

lpfnAddPage
[in] Pointer to a function that the object creation wizard extension calls to add a page to the wizard. This function takes the following format.
BOOL fnAddPage(HPROPSHEETPAGE hPage, LPARAM lParam);
hPage contains the handle of the wizard page created by calling CreatePropertySheetPage.

lParam is the lParam value passed to AddPages.

lParam
[in] Contains data that is private to the administrative snap-in. This value is passed as the second parameter to lpfnAddPage.

Return Values

If the method is successful, S_OK is returned. If the method fails, an OLE-defined error code is returned.

Remarks

For each page, the wizard extension adds to the wizard, the extension fills in a PROPSHEETPAGE structure, calls the CreatePropertySheetPage function to create the page handle and then calls the lpfnAddPage function with the page handle and lParam.

This method is identical in format and operation to the IShellPropSheetExt::AddPages method.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Dsadmin.h.

See Also

IDsAdminNewObjExt, CreatePropertySheetPage, PROPSHEETPAGE, IShellPropSheetExt::AddPages