Platform SDK: Active Directory, ADSI, and Directory Services

IDsAdminNewObj::SetButtons

The SetButtons method enables or disables the "Next" button in the wizard for the page specified by nCurrIndex.

HRESULT SetButtons(
  ULONG nCurrentIndex, 
  BOOL bValid 
);

Parameters

nCurrentIndex
[in] The zero based index of the wizard page where the "Next" button is to be enabled or disabled. The index is relative to the page count of the wizard extension making the function call.
bValid
[in] If bValid is true, the wizard will enable the "Next" button. If bValid is false, the wizard will disable the "Next" button.

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

If the extension calling the function is a primary extension with a single page and there are no secondary extensions loaded (for example: the wizard has a single page), the buttons will be; "OK" and "Cancel", instead of "Back", "Next" and "Cancel". In this case, a call to this function will enable/disable the "OK" button.

Requirements

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

See Also

IDsAdminNewObj