IExtendContextMenu interface (mmc.h)
The IExtendContextMenu interface enables a snap-in to add items to an existing context menu. This is how extensions add menu items to the context menus for the objects that they insert into the scope pane or list view result pane. This interface is also the means by which third-party context menu extensions add items to the context menus of node types that they extend.
When a user right-clicks items that belong to a snap-in and are also in the scope pane or list view result pane, MMC generates a default context menu. The snap-in that added the item is offered an opportunity to extend the context menu as a primary extension. MMC then offers all registered and enabled extensions the opportunity to add additional menu items.
Inheritance
The IExtendContextMenu interface inherits from the IUnknown interface. IExtendContextMenu also has these types of members:
Methods
The IExtendContextMenu interface has these methods.
IExtendContextMenu::AddMenuItems The IExtendContextMenu::AddMenuItems method enables a snap-in to add items to a context menu. |
IExtendContextMenu::Command The IExtendContextMenu::Command method is called if one of the items you added to the context menu with IExtendContextMenu::AddMenuItems is subsequently selected. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | mmc.h |