Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IContextMenuProvider::AddThirdPartyExtensionItems method

The IContextMenuProvider::AddThirdPartyExtensionItems method enables third-party extensions to add items at specified insertion points in this context menu. MMC checks its list of snap-ins registered to extend objects of this node type and offers each (if there are any) the opportunity to extend the context menu by calling IExtendContextMenu::AddMenuItems.

Syntax


HRESULT AddThirdPartyExtensionItems(
  [in] LPDATAOBJECT piDataObject
);

Parameters

piDataObject [in]

A pointer to the IDataObject interface on the object whose menu is extended.

Return value

This method can return one of these 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.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

DLL

Mmcndmgr.dll

See also

IContextMenuCallback
IContextMenuProvider
IExtendContextMenu

 

 

Show: