IExtendContextMenu.AddMenuItems Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables a snap-in to add items to an existing shortcut menu.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
void AddMenuItems(Microsoft::Aspnet::Snapin::IDataObject ^ piDataObject, Microsoft::Aspnet::Snapin::IContextMenuCallback ^ piCallback, int % pInsertionAllowed);
public void AddMenuItems (Microsoft.Aspnet.Snapin.IDataObject piDataObject, Microsoft.Aspnet.Snapin.IContextMenuCallback piCallback, ref int pInsertionAllowed);
abstract member AddMenuItems : Microsoft.Aspnet.Snapin.IDataObject * Microsoft.Aspnet.Snapin.IContextMenuCallback * int -> unit
Public Sub AddMenuItems (piDataObject As IDataObject, piCallback As IContextMenuCallback, ByRef pInsertionAllowed As Integer)
Parameters
- piDataObject
- IDataObject
A pointer to the IDataObject on the data object of the menu to which the AddMenuItems is adding items to the shortcut menu.
- piCallback
- IContextMenuCallback
A pointer to an IContextMenuCallback that can add items to the shortcut menu.
- pInsertionAllowed
- Int32
The MMC-defined menu-item insertion points that can be used.
Remarks
For more information about programming with the IExtendContextMenu interface and the Microsoft Management Console (MMC), see the MMC Programmer's Guide.