IConsoleVerb::SetVerbState method (mmc.h)
The SetVerbState method enables a snap-in to set a given verb's button state.
Syntax
HRESULT SetVerbState(
[in] MMC_CONSOLE_VERB eCmdID,
[in] MMC_BUTTON_STATE nState,
[in] BOOL bState
);
Parameters
[in] eCmdID
A value that specifies the command identifier of the verb. Values are taken from the MMC_CONSOLE_VERB enumeration. This value cannot be MMC_VERB_NONE.
[in] nState
Identifies the possible states of the button. Taken from the MMC_BUTTON_STATE enumeration.
[in] bState
This value is TRUE to enable or hide the verb, FALSE to disable or show the selected verb.
Return value
This method can return one of these values.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | mmc.h |
DLL | Mmcndmgr.dll |