The ImmGetContext function retrieves the input context associated with the specified window.
HIMC ImmGetContext(
HWND hWnd
);
Returns the handle to the input context.
An application should routinely use this function to retrieve the current input context before attempting to access information in the context.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 2.0 or later (FE).
Header: Declared in imm.h.
Import Library: Use imm32.lib.
Input Method Editor Overview, Input Method Editor Functions