Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function simulates the specified IME hot key, causing the same response as if the user had pressed the hot key in the specified window.

Syntax

BOOL ImmSimulateHotKey(
  HWND 
hWnd,
  DWORD 
dwHotKeyID
);

Parameters

hWnd

[in] Handle to the window.

dwHotKeyID

[in] Identifier of the IME hot key.

Return Value

Nonzero indicates success. Zero indicates failure.

Remarks

For Japanese versions 1.0 and later, Windows Embedded CE supports the following value for the dwHotKeyIDparameter:

IME_JHOTKEY_CLOSE_OPEN

(Japanese) Alternately opens and closes the IME.

This value is not supported for Windows CE 2.10 and later.

Requirements

Header imm.h
Library Coreimm.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later