MMC_CONSOLE_VERB enumeration (mmc.h)

The MMC_CONSOLE_VERB enumeration defines the command identifiers available for MMC verbs. These values are used in the m_eCmdID parameter of IConsoleVerb::GetVerbState, IConsoleVerb::SetVerbState, and IConsoleVerb::SetDefaultVerb.

Syntax

typedef enum _MMC_CONSOLE_VERB {
  MMC_VERB_NONE = 0x0000,
  MMC_VERB_OPEN = 0x8000,
  MMC_VERB_COPY = 0x8001,
  MMC_VERB_PASTE = 0x8002,
  MMC_VERB_DELETE = 0x8003,
  MMC_VERB_PROPERTIES = 0x8004,
  MMC_VERB_RENAME = 0x8005,
  MMC_VERB_REFRESH = 0x8006,
  MMC_VERB_PRINT = 0x8007,
  MMC_VERB_CUT = 0x8008,
  MMC_VERB_MAX,
  MMC_VERB_FIRST,
  MMC_VERB_LAST
} MMC_CONSOLE_VERB;

Constants

 
MMC_VERB_NONE
Value: 0x0000
No verbs specified. Snap-ins can use this verb in calls to
IConsoleVerb::SetDefaultVerb to specify that the selected item does not have a default verb.
MMC_VERB_OPEN
Value: 0x8000
Allows the selected item to be opened.
MMC_VERB_COPY
Value: 0x8001
Allows the selected item to be copied to the clipboard. When the user activates this verb, MMC calls the snap-in's IComponentData::QueryDataObject or IComponent::QueryDataObject implementation to request a data object for the selected item.
MMC_VERB_PASTE
Value: 0x8002
Allows the selected item that has been cut or copied to be pasted into the result pane. When the user activates this verb, MMC sends the snap-in's IComponent::Notify method a MMCN_QUERY_PASTE notification message.
MMC_VERB_DELETE
Value: 0x8003
Allows the selected item to be deleted. When the user activates this verb, MMC sends the snap-in's IComponent::Notify method a MMCN_DELETE notification message.
MMC_VERB_PROPERTIES
Value: 0x8004
The console instructs the snap-in and all snap-in extensions to provide property pages for the currently selected item. When the user activates this verb, MMC calls the IExtendPropertySheet2::CreatePropertyPages method of all snap-ins (primary and extension) that add property pages for the selected item.

Be aware that primary snap-ins are responsible for enabling the MMC_VERB_PROPERTIES verb. Extensions snap-ins cannot do this, because they do not own the item for which the verb is enabled.
MMC_VERB_RENAME
Value: 0x8005
Allows the selected item to be renamed. When the user activates this verb, MMC sends the snap-in's IComponent::Notify or IComponentData::Notify method a MMCN_RENAME notification message.
MMC_VERB_REFRESH
Value: 0x8006
Determines whether the currently selected scope item (folder) can be refreshed. When the user activates this verb, MMC sends the snap-in's IComponent::Notify a MMCN_REFRESH notification message.
MMC_VERB_PRINT
Value: 0x8007
Determines whether the currently selected item can be printed. When the user activates this verb, MMC sends the snap-in's IComponent::Notify a MMCN_PRINT notification message.
MMC_VERB_CUT
Value: 0x8008
(Applies to MMC 1.1 and later.) Used only to explicitly disable or hide the cut verb, when the copy and paste verbs are enabled. When the user activates this verb, MMC calls the snap-in's IComponentData::QueryDataObject or IComponent::QueryDataObject implementation to request a data object for the cut item.
MMC_VERB_MAX
MMC_VERB_FIRST
MMC_VERB_LAST

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header mmc.h