2022-01-30 00:38:04 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS headers
|
|
|
|
* LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later)
|
|
|
|
* PURPOSE: Providing DDK-compatible <immdev.h> and IME/IMM development helper
|
2024-02-13 11:33:14 +00:00
|
|
|
* COPYRIGHT: Copyright 2021-2024 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
|
2022-01-30 00:38:04 +00:00
|
|
|
*/
|
2010-08-09 22:53:07 +00:00
|
|
|
|
2022-01-30 00:38:04 +00:00
|
|
|
#ifndef _IMMDEV_
|
|
|
|
#define _IMMDEV_
|
|
|
|
|
|
|
|
#pragma once
|
2010-08-10 00:46:27 +00:00
|
|
|
|
2011-02-10 13:01:39 +00:00
|
|
|
#include <wingdi.h>
|
2022-01-30 00:38:04 +00:00
|
|
|
#include <imm.h>
|
2010-08-10 10:25:10 +00:00
|
|
|
|
2022-01-30 00:38:04 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
2010-08-10 10:25:10 +00:00
|
|
|
#endif
|
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
typedef struct _tagIMEINFO {
|
|
|
|
DWORD dwPrivateDataSize;
|
|
|
|
DWORD fdwProperty;
|
|
|
|
DWORD fdwConversionCaps;
|
|
|
|
DWORD fdwSentenceCaps;
|
|
|
|
DWORD fdwUICaps;
|
|
|
|
DWORD fdwSCSCaps;
|
|
|
|
DWORD fdwSelectCaps;
|
|
|
|
} IMEINFO, *PIMEINFO, NEAR *NPIMEINFO, FAR *LPIMEINFO;
|
|
|
|
|
|
|
|
typedef struct tagCANDIDATEINFO {
|
|
|
|
DWORD dwSize;
|
|
|
|
DWORD dwCount;
|
|
|
|
DWORD dwOffset[32];
|
|
|
|
DWORD dwPrivateSize;
|
|
|
|
DWORD dwPrivateOffset;
|
|
|
|
} CANDIDATEINFO, *PCANDIDATEINFO, NEAR *NPCANDIDATEINFO, FAR *LPCANDIDATEINFO;
|
|
|
|
|
|
|
|
#if (WINVER >= 0x040A)
|
2023-11-30 08:22:50 +00:00
|
|
|
BOOL WINAPI ImmDisableTextFrameService(_In_ DWORD dwThreadId);
|
2024-02-13 11:33:14 +00:00
|
|
|
#endif
|
2023-11-30 08:22:50 +00:00
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
typedef struct tagSOFTKBDDATA {
|
2023-11-24 14:02:19 +00:00
|
|
|
UINT uCount;
|
2024-02-13 11:33:14 +00:00
|
|
|
WORD wCode[ANYSIZE_ARRAY][256];
|
|
|
|
} SOFTKBDDATA, *PSOFTKBDDATA, NEAR *NPSOFTKBDDATA, FAR *LPSOFTKBDDATA;
|
|
|
|
|
|
|
|
typedef struct tagCOMPOSITIONSTRING {
|
|
|
|
DWORD dwSize;
|
|
|
|
DWORD dwCompReadAttrLen;
|
|
|
|
DWORD dwCompReadAttrOffset;
|
|
|
|
DWORD dwCompReadClauseLen;
|
|
|
|
DWORD dwCompReadClauseOffset;
|
|
|
|
DWORD dwCompReadStrLen;
|
|
|
|
DWORD dwCompReadStrOffset;
|
|
|
|
DWORD dwCompAttrLen;
|
|
|
|
DWORD dwCompAttrOffset;
|
|
|
|
DWORD dwCompClauseLen;
|
|
|
|
DWORD dwCompClauseOffset;
|
|
|
|
DWORD dwCompStrLen;
|
|
|
|
DWORD dwCompStrOffset;
|
|
|
|
DWORD dwCursorPos;
|
|
|
|
DWORD dwDeltaStart;
|
|
|
|
DWORD dwResultReadClauseLen;
|
|
|
|
DWORD dwResultReadClauseOffset;
|
|
|
|
DWORD dwResultReadStrLen;
|
|
|
|
DWORD dwResultReadStrOffset;
|
|
|
|
DWORD dwResultClauseLen;
|
|
|
|
DWORD dwResultClauseOffset;
|
|
|
|
DWORD dwResultStrLen;
|
|
|
|
DWORD dwResultStrOffset;
|
|
|
|
DWORD dwPrivateSize;
|
|
|
|
DWORD dwPrivateOffset;
|
|
|
|
} COMPOSITIONSTRING, *PCOMPOSITIONSTRING, NEAR *NPCOMPOSITIONSTRING, FAR *LPCOMPOSITIONSTRING;
|
|
|
|
|
|
|
|
typedef struct tagGUIDELINE {
|
|
|
|
DWORD dwSize;
|
|
|
|
DWORD dwLevel;
|
|
|
|
DWORD dwIndex;
|
|
|
|
DWORD dwStrLen;
|
|
|
|
DWORD dwStrOffset;
|
|
|
|
DWORD dwPrivateSize;
|
|
|
|
DWORD dwPrivateOffset;
|
|
|
|
} GUIDELINE, *PGUIDELINE, NEAR *NPGUIDELINE, FAR *LPGUIDELINE;
|
2023-11-24 14:02:19 +00:00
|
|
|
|
2022-01-29 01:35:48 +00:00
|
|
|
/* wParam for WM_IME_CONTROL */
|
|
|
|
#define IMC_GETCONVERSIONMODE 0x0001
|
|
|
|
#define IMC_GETSENTENCEMODE 0x0003
|
|
|
|
#define IMC_GETOPENSTATUS 0x0005
|
2023-11-24 14:02:19 +00:00
|
|
|
#define IMC_GETSOFTKBDFONT 0x0011
|
|
|
|
#define IMC_SETSOFTKBDFONT 0x0012
|
2022-01-29 01:35:48 +00:00
|
|
|
#define IMC_GETSOFTKBDPOS 0x0013
|
|
|
|
#define IMC_SETSOFTKBDPOS 0x0014
|
2023-11-24 14:02:19 +00:00
|
|
|
#define IMC_GETSOFTKBDSUBTYPE 0x0015
|
|
|
|
#define IMC_SETSOFTKBDSUBTYPE 0x0016
|
|
|
|
#define IMC_SETSOFTKBDDATA 0x0018
|
2022-01-29 01:35:48 +00:00
|
|
|
|
2022-04-22 22:11:48 +00:00
|
|
|
/* wParam for WM_IME_SYSTEM */
|
2022-08-12 22:08:18 +00:00
|
|
|
#define IMS_NOTIFYIMESHOW 0x05
|
|
|
|
#define IMS_UPDATEIMEUI 0x06
|
|
|
|
#define IMS_SETCANDFORM 0x09
|
|
|
|
#define IMS_SETCOMPFONT 0x0A
|
|
|
|
#define IMS_SETCOMPFORM 0x0B
|
|
|
|
#define IMS_CONFIGURE 0x0D
|
|
|
|
#define IMS_SETOPENSTATUS 0x0F
|
|
|
|
#define IMS_FREELAYOUT 0x11
|
|
|
|
#define IMS_GETCONVSTATUS 0x14
|
|
|
|
#define IMS_IMEHELP 0x15
|
2022-04-22 22:11:48 +00:00
|
|
|
#define IMS_IMEACTIVATE 0x17
|
|
|
|
#define IMS_IMEDEACTIVATE 0x18
|
|
|
|
#define IMS_ACTIVATELAYOUT 0x19
|
2022-07-22 20:58:17 +00:00
|
|
|
#define IMS_GETIMEMENU 0x1C
|
2022-08-12 22:08:18 +00:00
|
|
|
#define IMS_GETCONTEXT 0x1E
|
|
|
|
#define IMS_SENDNOTIFICATION 0x1F
|
|
|
|
#define IMS_COMPLETECOMPSTR 0x20
|
|
|
|
#define IMS_LOADTHREADLAYOUT 0x21
|
|
|
|
#define IMS_SETLANGBAND 0x23
|
|
|
|
#define IMS_UNSETLANGBAND 0x24
|
2022-04-22 22:11:48 +00:00
|
|
|
|
2023-11-24 14:02:19 +00:00
|
|
|
/* wParam for WM_IME_NOTIFY */
|
|
|
|
#define IMN_SOFTKBDDESTROYED 0x0011
|
|
|
|
|
2022-02-02 02:58:31 +00:00
|
|
|
#define IMMGWL_IMC 0
|
|
|
|
#define IMMGWL_PRIVATE (sizeof(LONG))
|
|
|
|
|
|
|
|
#define IMMGWLP_IMC 0
|
|
|
|
#define IMMGWLP_PRIVATE (sizeof(LONG_PTR))
|
|
|
|
|
2010-08-10 00:46:27 +00:00
|
|
|
typedef struct _tagINPUTCONTEXT {
|
|
|
|
HWND hWnd;
|
|
|
|
BOOL fOpen;
|
|
|
|
POINT ptStatusWndPos;
|
|
|
|
POINT ptSoftKbdPos;
|
|
|
|
DWORD fdwConversion;
|
|
|
|
DWORD fdwSentence;
|
2023-11-24 14:02:19 +00:00
|
|
|
union {
|
2010-08-10 00:46:27 +00:00
|
|
|
LOGFONTA A;
|
|
|
|
LOGFONTW W;
|
|
|
|
} lfFont;
|
|
|
|
COMPOSITIONFORM cfCompForm;
|
|
|
|
CANDIDATEFORM cfCandForm[4];
|
|
|
|
HIMCC hCompStr;
|
|
|
|
HIMCC hCandInfo;
|
|
|
|
HIMCC hGuideLine;
|
|
|
|
HIMCC hPrivate;
|
|
|
|
DWORD dwNumMsgBuf;
|
|
|
|
HIMCC hMsgBuf;
|
|
|
|
DWORD fdwInit;
|
|
|
|
DWORD dwReserve[3];
|
2024-02-13 11:33:14 +00:00
|
|
|
} INPUTCONTEXT, *PINPUTCONTEXT, NEAR *NPINPUTCONTEXT, FAR *LPINPUTCONTEXT;
|
2010-08-10 00:46:27 +00:00
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
#ifndef _WIN64
|
2021-07-09 14:31:42 +00:00
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, hWnd) == 0x0);
|
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, fOpen) == 0x4);
|
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, ptStatusWndPos) == 0x8);
|
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, ptSoftKbdPos) == 0x10);
|
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, fdwConversion) == 0x18);
|
2024-02-13 11:33:14 +00:00
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, fdwSentence) == 0x1C);
|
2021-07-09 14:31:42 +00:00
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, lfFont) == 0x20);
|
2024-02-13 11:33:14 +00:00
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, cfCompForm) == 0x7C);
|
2021-07-09 14:31:42 +00:00
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, cfCandForm) == 0x98);
|
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, hCompStr) == 0x118);
|
2024-02-13 11:33:14 +00:00
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, hCandInfo) == 0x11C);
|
2021-07-09 14:31:42 +00:00
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, hGuideLine) == 0x120);
|
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, hPrivate) == 0x124);
|
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, dwNumMsgBuf) == 0x128);
|
2024-02-13 11:33:14 +00:00
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, hMsgBuf) == 0x12C);
|
2021-07-09 14:31:42 +00:00
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, fdwInit) == 0x130);
|
|
|
|
C_ASSERT(offsetof(INPUTCONTEXT, dwReserve) == 0x134);
|
|
|
|
C_ASSERT(sizeof(INPUTCONTEXT) == 0x140);
|
|
|
|
#endif
|
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
/* bits of fdwInit of INPUTCONTEXT */
|
2021-07-13 11:51:28 +00:00
|
|
|
#define INIT_STATUSWNDPOS 0x00000001
|
|
|
|
#define INIT_CONVERSION 0x00000002
|
|
|
|
#define INIT_SENTENCE 0x00000004
|
|
|
|
#define INIT_LOGFONT 0x00000008
|
|
|
|
#define INIT_COMPFORM 0x00000010
|
|
|
|
#define INIT_SOFTKBDPOS 0x00000020
|
2023-12-19 06:23:12 +00:00
|
|
|
#define INIT_GUIDMAP 0x00000040
|
2021-07-13 11:51:28 +00:00
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
/* bits for INPUTCONTEXTDX.dwChange */
|
2021-10-03 22:33:15 +00:00
|
|
|
#define INPUTCONTEXTDX_CHANGE_OPEN 0x1
|
|
|
|
#define INPUTCONTEXTDX_CHANGE_CONVERSION 0x2
|
|
|
|
#define INPUTCONTEXTDX_CHANGE_SENTENCE 0x4
|
|
|
|
#define INPUTCONTEXTDX_CHANGE_FORCE_OPEN 0x100
|
|
|
|
|
2021-08-08 08:35:34 +00:00
|
|
|
#ifndef WM_IME_REPORT
|
|
|
|
#define WM_IME_REPORT 0x280
|
|
|
|
#endif
|
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
/* WM_IME_REPORT wParam */
|
2021-08-08 08:35:34 +00:00
|
|
|
#define IR_STRINGSTART 0x100
|
|
|
|
#define IR_STRINGEND 0x101
|
|
|
|
#define IR_OPENCONVERT 0x120
|
|
|
|
#define IR_CHANGECONVERT 0x121
|
|
|
|
#define IR_CLOSECONVERT 0x122
|
|
|
|
#define IR_FULLCONVERT 0x123
|
|
|
|
#define IR_IMESELECT 0x130
|
|
|
|
#define IR_STRING 0x140
|
|
|
|
#define IR_DBCSCHAR 0x160
|
|
|
|
#define IR_UNDETERMINE 0x170
|
|
|
|
#define IR_STRINGEX 0x180
|
|
|
|
#define IR_MODEINFO 0x190
|
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
/* IMC */
|
2021-10-03 22:33:15 +00:00
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
LPINPUTCONTEXT WINAPI ImmLockIMC(_In_ HIMC hIMC);
|
|
|
|
BOOL WINAPI ImmUnlockIMC(_In_ HIMC hIMC);
|
|
|
|
DWORD WINAPI ImmGetIMCLockCount(_In_ HIMC hIMC);
|
2021-10-03 22:33:15 +00:00
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
/* IMCC */
|
2021-10-03 22:33:15 +00:00
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
HIMCC WINAPI ImmCreateIMCC(_In_ DWORD size);
|
|
|
|
HIMCC WINAPI ImmDestroyIMCC(_In_ HIMCC block);
|
|
|
|
LPVOID WINAPI ImmLockIMCC(_In_ HIMCC imcc);
|
|
|
|
BOOL WINAPI ImmUnlockIMCC(_In_ HIMCC imcc);
|
|
|
|
DWORD WINAPI ImmGetIMCCLockCount(_In_ HIMCC imcc);
|
|
|
|
HIMCC WINAPI ImmReSizeIMCC(_In_ HIMCC imcc, _In_ DWORD size);
|
|
|
|
DWORD WINAPI ImmGetIMCCSize(_In_ HIMCC imcc);
|
|
|
|
|
|
|
|
/* Messaging */
|
|
|
|
|
|
|
|
BOOL WINAPI ImmGenerateMessage(_In_ HIMC hIMC);
|
|
|
|
|
|
|
|
BOOL WINAPI
|
|
|
|
ImmTranslateMessage(
|
|
|
|
_In_ HWND hwnd,
|
|
|
|
_In_ UINT msg,
|
|
|
|
_In_ WPARAM wParam,
|
|
|
|
_In_ LPARAM lKeyData);
|
|
|
|
|
|
|
|
LRESULT WINAPI ImmRequestMessageA(_In_ HIMC hIMC, _In_ WPARAM wParam, _In_ LPARAM lParam);
|
|
|
|
LRESULT WINAPI ImmRequestMessageW(_In_ HIMC hIMC, _In_ WPARAM wParam, _In_ LPARAM lParam);
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
#define ImmRequestMessage ImmRequestMessageW
|
|
|
|
#else
|
|
|
|
#define ImmRequestMessage ImmRequestMessageA
|
2021-10-03 22:33:15 +00:00
|
|
|
#endif
|
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
typedef struct _tagTRANSMSG {
|
2023-11-25 13:46:00 +00:00
|
|
|
UINT message;
|
|
|
|
WPARAM wParam;
|
|
|
|
LPARAM lParam;
|
2024-02-13 11:33:14 +00:00
|
|
|
} TRANSMSG, *PTRANSMSG, NEAR *NPTRANSMSG, FAR *LPTRANSMSG;
|
2023-11-25 13:46:00 +00:00
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
typedef struct _tagTRANSMSGLIST {
|
2023-11-25 13:46:00 +00:00
|
|
|
UINT uMsgCount;
|
|
|
|
TRANSMSG TransMsg[ANYSIZE_ARRAY];
|
2024-02-13 11:33:14 +00:00
|
|
|
} TRANSMSGLIST, *PTRANSMSGLIST, NEAR *NPTRANSMSGLIST, FAR *LPTRANSMSGLIST;
|
2023-11-25 13:46:00 +00:00
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
/* Soft keyboard */
|
2023-11-25 13:46:00 +00:00
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
HWND WINAPI
|
|
|
|
ImmCreateSoftKeyboard(
|
|
|
|
_In_ UINT uType,
|
|
|
|
_In_ HWND hwndParent,
|
|
|
|
_In_ INT x,
|
|
|
|
_In_ INT y);
|
2023-11-25 13:46:00 +00:00
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
BOOL WINAPI
|
|
|
|
ImmShowSoftKeyboard(
|
|
|
|
_In_ HWND hwndSoftKBD,
|
|
|
|
_In_ INT nCmdShow);
|
2023-11-25 13:46:00 +00:00
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
BOOL WINAPI
|
|
|
|
ImmDestroySoftKeyboard(
|
|
|
|
_In_ HWND hwndSoftKBD);
|
2023-11-25 13:46:00 +00:00
|
|
|
|
2023-12-11 13:37:25 +00:00
|
|
|
/* IME file interface */
|
|
|
|
|
|
|
|
BOOL WINAPI
|
|
|
|
ImeInquire(
|
|
|
|
_Out_ LPIMEINFO lpIMEInfo,
|
2024-02-13 11:33:14 +00:00
|
|
|
_Out_ LPTSTR lpszWndClass,
|
2023-12-11 13:37:25 +00:00
|
|
|
_In_ DWORD dwSystemInfoFlags);
|
|
|
|
|
|
|
|
DWORD WINAPI
|
|
|
|
ImeConversionList(
|
|
|
|
_In_ HIMC hIMC,
|
2024-02-13 11:33:14 +00:00
|
|
|
_In_ LPCTSTR lpSrc,
|
2023-12-11 13:37:25 +00:00
|
|
|
_Out_ LPCANDIDATELIST lpDst,
|
|
|
|
_In_ DWORD dwBufLen,
|
|
|
|
_In_ UINT uFlag);
|
|
|
|
|
|
|
|
BOOL WINAPI
|
|
|
|
ImeRegisterWord(
|
2024-02-13 11:33:14 +00:00
|
|
|
_In_ LPCTSTR lpszReading,
|
2023-12-11 13:37:25 +00:00
|
|
|
_In_ DWORD dwStyle,
|
2024-02-13 11:33:14 +00:00
|
|
|
_In_ LPCTSTR lpszString);
|
2023-12-11 13:37:25 +00:00
|
|
|
|
|
|
|
BOOL WINAPI
|
|
|
|
ImeUnregisterWord(
|
2024-02-13 11:33:14 +00:00
|
|
|
_In_ LPCTSTR lpszReading,
|
2023-12-11 13:37:25 +00:00
|
|
|
_In_ DWORD dwStyle,
|
2024-02-13 11:33:14 +00:00
|
|
|
_In_ LPCTSTR lpszString);
|
2023-12-11 13:37:25 +00:00
|
|
|
|
|
|
|
UINT WINAPI
|
|
|
|
ImeGetRegisterWordStyle(
|
|
|
|
_In_ UINT nItem,
|
2024-02-13 11:33:14 +00:00
|
|
|
_Out_ LPSTYLEBUF lpStyleBuf);
|
2023-12-11 13:37:25 +00:00
|
|
|
|
|
|
|
UINT WINAPI
|
|
|
|
ImeEnumRegisterWord(
|
2024-02-13 11:33:14 +00:00
|
|
|
_In_ REGISTERWORDENUMPROC lpfnEnumProc,
|
|
|
|
_In_opt_ LPCTSTR lpszReading,
|
2023-12-11 13:37:25 +00:00
|
|
|
_In_ DWORD dwStyle,
|
2024-02-13 11:33:14 +00:00
|
|
|
_In_opt_ LPCTSTR lpszString,
|
2023-12-11 13:37:25 +00:00
|
|
|
_In_opt_ LPVOID lpData);
|
|
|
|
|
|
|
|
BOOL WINAPI
|
|
|
|
ImeConfigure(
|
|
|
|
_In_ HKL hKL,
|
|
|
|
_In_ HWND hWnd,
|
|
|
|
_In_ DWORD dwMode,
|
|
|
|
_Inout_opt_ LPVOID lpData);
|
|
|
|
|
|
|
|
BOOL WINAPI
|
|
|
|
ImeDestroy(
|
|
|
|
_In_ UINT uReserved);
|
|
|
|
|
|
|
|
LRESULT WINAPI
|
|
|
|
ImeEscape(
|
|
|
|
_In_ HIMC hIMC,
|
|
|
|
_In_ UINT uEscape,
|
|
|
|
_Inout_opt_ LPVOID lpData);
|
|
|
|
|
|
|
|
BOOL WINAPI
|
|
|
|
ImeProcessKey(
|
|
|
|
_In_ HIMC hIMC,
|
|
|
|
_In_ UINT uVirKey,
|
|
|
|
_In_ LPARAM lParam,
|
|
|
|
_In_ CONST LPBYTE lpbKeyState);
|
|
|
|
|
|
|
|
BOOL WINAPI
|
|
|
|
ImeSelect(
|
|
|
|
_In_ HIMC hIMC,
|
|
|
|
_In_ BOOL fSelect);
|
|
|
|
|
|
|
|
BOOL WINAPI
|
|
|
|
ImeSetActiveContext(
|
|
|
|
_In_ HIMC hIMC,
|
|
|
|
_In_ BOOL fFlag);
|
|
|
|
|
|
|
|
UINT WINAPI
|
|
|
|
ImeToAsciiEx(
|
|
|
|
_In_ UINT uVirKey,
|
|
|
|
_In_ UINT uScanCode,
|
|
|
|
_In_ CONST LPBYTE lpbKeyState,
|
|
|
|
_Out_ LPTRANSMSGLIST lpTransMsgList,
|
|
|
|
_In_ UINT fuState,
|
|
|
|
_In_ HIMC hIMC);
|
|
|
|
|
|
|
|
BOOL WINAPI
|
|
|
|
NotifyIME(
|
|
|
|
_In_ HIMC hIMC,
|
|
|
|
_In_ DWORD dwAction,
|
|
|
|
_In_ DWORD dwIndex,
|
|
|
|
_In_ DWORD_PTR dwValue);
|
|
|
|
|
|
|
|
BOOL WINAPI
|
|
|
|
ImeSetCompositionString(
|
|
|
|
_In_ HIMC hIMC,
|
|
|
|
_In_ DWORD dwIndex,
|
|
|
|
_In_opt_ LPCVOID lpComp,
|
|
|
|
_In_ DWORD dwCompLen,
|
|
|
|
_In_opt_ LPCVOID lpRead,
|
|
|
|
_In_ DWORD dwReadLen);
|
|
|
|
|
|
|
|
DWORD WINAPI
|
|
|
|
ImeGetImeMenuItems(
|
|
|
|
_In_ HIMC hIMC,
|
|
|
|
_In_ DWORD dwFlags,
|
|
|
|
_In_ DWORD dwType,
|
2024-02-13 11:33:14 +00:00
|
|
|
_Inout_opt_ LPIMEMENUITEMINFO lpImeParentMenu,
|
|
|
|
_Inout_opt_ LPIMEMENUITEMINFO lpImeMenu,
|
2023-12-11 13:37:25 +00:00
|
|
|
_In_ DWORD dwSize);
|
|
|
|
|
2022-01-30 00:38:04 +00:00
|
|
|
#ifdef __cplusplus
|
2024-02-13 11:33:14 +00:00
|
|
|
} /* extern "C" */
|
2022-01-30 00:38:04 +00:00
|
|
|
#endif
|
|
|
|
|
2024-02-13 11:33:14 +00:00
|
|
|
/* IME Property bits */
|
|
|
|
#define IME_PROP_END_UNLOAD 0x0001
|
|
|
|
#define IME_PROP_KBD_CHAR_FIRST 0x0002
|
|
|
|
#define IME_PROP_IGNORE_UPKEYS 0x0004
|
|
|
|
#define IME_PROP_NEED_ALTKEY 0x0008
|
|
|
|
#define IME_PROP_NO_KEYS_ON_CLOSE 0x0010
|
|
|
|
#define IME_PROP_ACCEPT_WIDE_VKEY 0x0020
|
|
|
|
|
|
|
|
/* for NI_CONTEXTUPDATED */
|
|
|
|
#define IMC_SETCONVERSIONMODE 0x0002
|
|
|
|
#define IMC_SETSENTENCEMODE 0x0004
|
|
|
|
#define IMC_SETOPENSTATUS 0x0006
|
|
|
|
|
|
|
|
/* dwAction for ImmNotifyIME */
|
|
|
|
#define NI_CONTEXTUPDATED 0x0003
|
|
|
|
#define NI_OPENCANDIDATE 0x0010
|
|
|
|
#define NI_CLOSECANDIDATE 0x0011
|
|
|
|
#define NI_SELECTCANDIDATESTR 0x0012
|
|
|
|
#define NI_CHANGECANDIDATELIST 0x0013
|
|
|
|
#define NI_FINALIZECONVERSIONRESULT 0x0014
|
|
|
|
#define NI_COMPOSITIONSTR 0x0015
|
|
|
|
#define NI_SETCANDIDATE_PAGESTART 0x0016
|
|
|
|
#define NI_SETCANDIDATE_PAGESIZE 0x0017
|
|
|
|
#define NI_IMEMENUSELECTED 0x0018
|
|
|
|
|
|
|
|
/* dwSystemInfoFlags bits */
|
|
|
|
#define IME_SYSINFO_WINLOGON 0x0001
|
|
|
|
#define IME_SYSINFO_WOW16 0x0002
|
|
|
|
|
2022-01-30 00:38:04 +00:00
|
|
|
#endif /* ndef _IMMDEV_ */
|