IContextMenuCallback::AddItem method (mmc.h)

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

Syntax

HRESULT AddItem(
  [in] CONTEXTMENUITEM *pItem
);

Parameters

[in] pItem

A pointer to a CONTEXTMENUITEM 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
DLL Mmcndmgr.dll

See also

CONTEXTMENUITEM

IContextMenuCallback