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.
When To Implement
Implement this interface as part of your in-process server DLL when the capability to extend a snap-in component's context menus is required.
When To Use
Only MMC calls this interface.
Methods
The IExtendContextMenu interface inherits the methods of the IUnknown interface.
In addition, IExtendContextMenu defines the following methods.
| Method | Description |
AddMenuItems |
Enables the extension to add menu items.
|
Command |
Indicates that an extension item on a context menu was selected.
|
Requirements
| Minimum supported client | Windows 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| Header | Mmc.h |
See Also
- IContextMenuCallback
- IDataObject
- Working with Context Menus
Send comments about this topic to Microsoft
Build date: 5/27/2009