Share via


IActiveIMMIME::SimulateHotKey method

Simulates the specified Active Input Method Editor (IME) hot key, which causes the same response as if the user had pressed the hot key in the specified window.

Syntax

HRESULT SimulateHotKey(
  [in] HWND  hWnd,
  [in] DWORD dwHotKeyID
);

Parameters

  • hWnd [in]
    A handle to the window.

  • dwHotKeyID [in]
    An unsigned long integer value that contains the identifier for the Active IME hot key.

Return value

Returns S_OK if successful, or an error value otherwise.

Remarks

This method maps to the ImmSimulateHotKey function that is documented in the Windows Software Development Kit (SDK).

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Dimm.h

IDL

Dimm.idl

See also

IActiveIMMIME