Platform SDK: Active Directory, ADSI, and Directory Services

IDsAdminNewObjExt::AddPages

The AddPages method adds the desired wizard pages to the wizard using the provided callback function.

HRESULT AddPages(
  LPFNADDPROPSHEETPAGE lpfnAddPage, 
  LPARAM lparam 
);

Parameters

lpfnAddPage
[in] The address of a function that the property sheet handler calls to add a page to the property sheet. The function takes a property sheet handle returned by the CreatePropertySheetPage function and the lParam parameter passed to the AddPages method.
lparam
[in] This parameter passes to the function specified by the lpfnAddPage parameter.

Return Values

If the method is successful, the return value is S_OK.

If an error occurs, the return value is a COM error code. For more information, see Error Handling.

Remarks

For each page the property sheet handler needs to add to a property sheet, the handler fills a PROPSHEETPAGE structure, calls the CreatePropertySheetPage function and then calls the function specified by the lpfnAddPage parameter.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Dsadmin.h.

See Also

IDsAdminNewObjExt