IConsoleVerb::GetVerbState method (mmc.h)

The GetVerbState method enables a snap-in to obtain a given verb's current state.

Syntax

HRESULT GetVerbState(
  [in]  MMC_CONSOLE_VERB eCmdID,
  [in]  MMC_BUTTON_STATE nState,
  [out] BOOL             *pState
);

Parameters

[in] eCmdID

A value that specifies the command identifier of the verb. Taken from the MMC_CONSOLE_VERB enumeration. This value cannot be MMC_VERB_NONE.

[in] nState

A value that identifies the possible states of the button. Taken from the MMC_BUTTON_STATE enumeration.

[out] pState

A pointer to the state information returned. TRUE if the state is enabled or hidden and FALSE if the state is disabled or visible.

Return value

This method can return one of these values.

Remarks

When an item is selected, the verb states for all the commands are reset to disabled and hidden. It is up to the snap-in developer to update the verb state when an item is selected.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header mmc.h
DLL Mmcndmgr.dll

See also

IConsoleVerb

IToolbar