IContextMenuCallback2::AddItem method (mmc.h)

The IContextMenuCallback2::AddItem method adds a single item to a context menu.

Syntax

HRESULT AddItem(
  [in] CONTEXTMENUITEM2 *pItem
);

Parameters

[in] pItem

A pointer to a CONTEXTMENUITEM2 structure with the item to be added. This parameter cannot be NULL.

Return value

This method can return one of these values.

Requirements

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

See also

CONTEXTMENUITEM2

IContextMenuCallback2