ImmGetImeMenuItemsW function (immdev.h)
Retrieves the menu items that are registered in the IME menu of a specified input context.
DWORD ImmGetImeMenuItemsW(
[in] HIMC unnamedParam1,
[in] DWORD unnamedParam2,
[in] DWORD unnamedParam3,
[out, optional] LPIMEMENUITEMINFOW lpImeParentMenu,
[out, optional] LPIMEMENUITEMINFOW lpImeMenu,
[in] DWORD dwSize
);
[in] unnamedParam1
Handle to the input context for the specified menu items.
[in] unnamedParam2
Flag specifying menu information options. The following value is defined.
Value | Meaning |
---|---|
|
Retrieve the menu items for the context menu, obtained by a right mouse click. |
[in] unnamedParam3
Type of menu to retrieve. This parameter can have one or more of the following values.
[out, optional] lpImeParentMenu
Pointer to an IMEMENUITEMINFO structure in which the function retrieves parent menu information. To retrieve information about the submenu items of this parent menu, the application sets the fType member to MFT_SUBMENU. This parameter contains NULL if the function retrieves only top-level menu items.
[out, optional] lpImeMenu
Pointer to an array of IMEMENUITEMINFO structures in which the function retrieves information about the menu items. This parameter contains NULL if the function retrieves the number of registered menu items.
[in] dwSize
Size of the buffer to receive the IMEMENUITEMINFO structure.
Returns the number of menu items copied into lpImeMenu. If lpImeMenu specifies NULL, the function returns the number of registered menu items in the specified input context.
Note
The immdev.h header defines ImmGetImeMenuItems as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only],East Asian language support installed. |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | immdev.h (include Immdev.h, Windows.h) |
Library | Imm32.lib |
DLL | Imm32.dll |