SHFind_InitMenuPopup function

[SHFind_InitMenuPopup is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Retrieves the IContextMenu instance for the submenu of options displayed for the Search entry in the Classic style Start menu.

Syntax

IContextMenu * SHFind_InitMenuPopup(
  HMENU hmenu,
  HWND  hwndOwner,
  UINT  idCmdFirst,
  UINT  idCmdLast
);

Parameters

hmenu

Type: HMENU

The handle of the popup menu.

hwndOwner

Type: HWND

The handle of the popup menu's owner window. This value can be NULL.

idCmdFirst

Type: UINT

The ID of the first menu item.

idCmdLast

Type: UINT

The ID of the last menu item.

Return Value

Type: IContextMenu*

If successful, returns an IContextMenu pointer. On failure, returns NULL.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlobj_core.h (include Shlobj.h)
Library Shell32.lib
DLL Shell32.dll (version 6.0 or later)