Platform SDK: Active Directory, ADSI, and Directory Services |
The SetButtons method enables or disables the "Next" button in the wizard for the page specified by nCurrIndex.
HRESULT SetButtons( ULONG nCurrentIndex, BOOL bValid );
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.
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.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Dsadmin.h.