SHInvokeContextMenuCommand

This function invokes a command from a context menu. It issues the command in the extension that added it to the menu.

BOOL SHInvokeContextMenuCommand(
  HWND hwndOwner,
  UINT idCmd,
  HANDLE hCMExtensions
);

Parameters

  • hwndOwner
    [in] The window handle for the owner of menu, message boxes, and so on.
  • idCmd
    [in] The command ID to execute.
  • hCMExtensions
    [in] The handle to the context menu extensions abstraction object.

Return Values

TRUE = Success

FALSE = Failure

Requirements

Pocket PC: Windows Mobile 2000 and later
OS Versions: Windows CE 3.0 and later
Header: aygshell.h
Library: aygshell.lib

See Also

IContextMenu

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.