IContextMenuCallback::AddItem

[This is preliminary documentation and subject to change.]

Adds a single item to a context menu.

HRESULT AddItem(
  CONTEXTMENUITEM * pItem  // Pointer to the identifying structure
);
 

Parameters

pItem
[in] Pointer to a CONTEXTMENUITEM structure with the item to be added. This parameter may not be NULL.

Return Values

S_OK
The menu item was successfully added.
E_UNEXPECTED
An unexpected error occurred.
E_POINTER
The pItem parameter is NULL.
E_INVALIDARG
One or more of the following conditions occurred:

See Also

CONTEXTMENUITEM, IContextMenuCallback