IContextMenuProvider::AddPrimaryExtensionItems method (mmc.h)

The IContextMenuProvider::AddPrimaryExtensionItems method enables one specific extension to add items to the insertion points defined for this context menu.

Syntax

HRESULT AddPrimaryExtensionItems(
  [in] LPUNKNOWN    piExtension,
  [in] LPDATAOBJECT piDataObject
);

Parameters

[in] piExtension

A pointer to an IUnknown interface on the object that implements the IExtendContextMenu interface for the primary extension.

[in] piDataObject

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

Return value

Other values can be returned, depending on the implementation of IExtendContextMenu::AddMenuItems by the specified snap-in.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header mmc.h
DLL Mmcndmgr.dll

See also

IContextMenuCallback

IContextMenuProvider

IExtendContextMenu