ShlwApiGetMenuPosFromID Method

Determines the position of an item in a menu. Used in the case where the item's ID is known.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ShlwApi.dll", ExactSpelling = true, SetLastError = true)]
public static int GetMenuPosFromID(
	IntPtr hMenu,
	uint id
)

Parameters

hMenu  IntPtr
The handle of the menu.
id  UInt32
An application-defined 16-bit value that identifies the menu item.

Return Value

Int32
The item's zero-based position in the menu.

Remarks

See Also