IDsAdminNewObjExt::AddPages method (dsadmin.h)

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

Syntax

HRESULT AddPages(
  [in] LPFNADDPROPSHEETPAGE lpfnAddPage,
  [in] LPARAM               lParam
);

Parameters

[in] lpfnAddPage

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.

[in] lParam

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

Return value

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

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header dsadmin.h
DLL DSAdmin.dll

See also

CreatePropertySheetPage

IDsAdminNewObjExt

IShellPropSheetExt::AddPages

PROPSHEETPAGE