This topic has not yet been rated - Rate this topic

ImmGetVirtualKey function

Retrieves the original virtual key value associated with a key input message that the IME has already processed.

Syntax


UINT ImmGetVirtualKey(
  _In_  HWND hWnd
);

Parameters

hWnd [in]

Handle to the window that receives the key message.

Return value

If TranslateMessage has been called by the application, ImmGetVirtualKey returns VK_PROCESSKEY; otherwise, it returns the virtual key.

Remarks

Although the IME sets the virtual key value to VK_PROCESSKEY after processing a key input message, an application can recover the original virtual key value with the ImmGetVirtualKey function. This function is used only for key input messages containing the VK_PROCESSKEY value. Applications can only get the original virtual key by using this function after receiving the WM_KEYDOWN (VK_PROCESSKEY) message, and before TranslateMessage is called in its own message loop.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Version

East Asian language support installed.

Header

Imm.h (include Windows.h)

Library

Imm32.lib

DLL

Imm32.dll

See also

Input Method Manager
Input Method Manager Functions

 

 

Send comments about this topic to Microsoft

Build date: 11/21/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.