Platform SDK: Active Directory, ADSI, and Directory Services

IDsAdminNewObj::GetPageCounts

The GetPageCounts method returns the total number of pages the wizard contains as well as the starting index of the extension.

HRESULT SetButtons(
  LONG *pnTotal, 
  LONG *pnStartIndex 
);

Parameters

pnTotal
[out] Pointer to a variable that receives the total number of pages contained in the wizard.
*pnStartIndex
[out] Pointer to a variable that receives the zero based index of the extension.

Return Values

If the user successfully completes the wizard, 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

This function will provide results based on the count of pages added, using IDsAdminNewObjExt::AddPages(). If there are changes to the number of pages because of page manipulations by Win32 APIs, the return values may not be accurate.

Requirements

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

See Also

IDsAdminNewObj, IDsAdminNewObjExt::AddPages