The ImmSimulateHotKey function simulates the specified IME hot key, causing the same response as if the user had pressed the hot key in the specified window.
BOOL ImmSimulateHotKey(
HWND hWnd,
DWORD dwHotKeyID
);
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Windows CE: Windows CE supports the following value for the dwHotKeyID parameter:
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