IContextMenuProvider::AddThirdPartyExtensionItems

[This is preliminary documentation and subject to change.]

Enables third-party extensions to add items to specified insertion points in this context menu. The Microsoft Management Console checks its list of snap-ins registered to extend objects of this node type and offers each (if any) the opportunity to extend the context menu by calling IExtendContextMenu::AddMenuItems.

HRESULT AddThirdPartyExtensionItems(
  LPDATAOBJECT piDataObject  // Pointer to a data object
);
 

Parameters

piDataObject
[in] Pointer to the IDataObject interface on the object whose menu is being extended.

Return Values

S_OK
The menu was successfully extended with zero or more menu items.
E_UNEXPECTED
An unexpected error occurred.
E_INVALIDARG
The piDataObject parameter is NULL.

See Also

IContextMenuCallback, IContextMenuProvider, IExtendContextMenu