IConsoleVerb::SetDefaultVerb method

The SetDefaultVerb method sets the default action on an object.

Syntax


HRESULT SetDefaultVerb(
  [in] MMC_CONSOLE_VERB eCmID
);

Parameters

eCmID [in]

The default verb.

Return value

This method can return one of these values.

S_OK

The verb was successfully set.

Remarks

The MMC_CONSOLE_VERB enumeration defines the set of default verbs. The snap-in can set any verb as the default verb. Setting a default verb causes MMC to:

  • Show the context menu item for the verb in bold.
  • Perform a default action (only for properties and open verbs) if the snap-in returns S_FALSE in its MMCN_DBLCLICK notification handler.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

DLL

Mmcndmgr.dll

See also

IConsoleVerb
IConsoleVerb::GetDefaultVerb
MMC_CONSOLE_VERB

 

 

Show: