IContextMenu::InvokeCommand

[Now Supported on Windows NT]

Carries out the command associated with a context menu item.

HRESULT InvokeCommand(

LPCMINVOKECOMMANDINFO lpici //Points to a command info structure
);  

Parameters

lpici

Pointer to a CMINVOKECOMMANDINFO structure containing information about the command.

Return Values

Returns NOERROR if successful or an OLE-defined error code otherwise.

The shell calls this method when the user chooses a command that the handler added to a context menu. This method may also be called by an application without any corresponding user action.

See Also

CMINVOKECOMMANDINFO, IContextMenu