Directory Services

IDsAdminNewObj::GetPageCounts

The IDsAdminNewObj::GetPageCounts method obtains the total number of pages in the wizard as well as the index of the first page of the extension.

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

Parameters

pnTotal
[out] Pointer to a LONG value that receives the total number of pages contained in the wizard.
pnStartIndex
[out] Pointer to a LONG value that receives the zero-based index of the first page of the extension.

Return Values

Returns one of the following values.

S_OK
The method was successful.
E_INVALIDARG
One or more parameters are invalid.

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 supplied values may not be accurate. If this method is called in response to the IDsAdminNewObjExt::SetObject method, the supplied page counts are most likely to be accurate.

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

IDsAdminNewObj, IDsAdminNewObjExt::AddPages, IDsAdminNewObjExt::SetObject