ReactOS
0.4.16-dev-2354-g16de117
kbswitch.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stdlib.h>
4
#include <
windef.h
>
5
#include <
winbase.h
>
6
#include <
winuser.h
>
7
#include <
winnls.h
>
8
#include <
winreg.h
>
9
#include <
wingdi.h
>
10
#include <
shellapi.h
>
11
#include <tchar.h>
12
#include <
strsafe.h
>
13
#include <
ime/indicml.h
>
/* INDICATOR_CLASS, INDICM_... */
14
#include <
cjkcode.h
>
/* LANGID_... */
15
16
#include "
resource.h
"
17
#include "
indicdll/resource.h
"
18
19
#define CCH_LAYOUT_ID 8
// Character Count of a layout ID like "00000409"
20
#define CCH_ULONG_DEC 10
// Maximum Character Count of a ULONG in decimal
21
22
#define WM_LANG_CHANGED (WM_USER + 10200)
23
#define WM_WINDOW_ACTIVATE (WM_USER + 10300)
24
25
#define IME_STATUS_NO_IME 0
26
#define IME_STATUS_IME_CLOSED 1
27
#define IME_STATUS_IME_OPEN 2
28
#define IME_STATUS_IME_NATIVE 4
29
#define IME_STATUS_IME_FULLSHAPE 8
30
31
static
inline
BOOL
32
IsWndClassName
(
_In_opt_
HWND
hwndTarget,
PCTSTR
pszName)
33
{
34
TCHAR
szClass[32];
35
GetClassName
(hwndTarget, szClass,
_countof
(szClass));
36
return
lstrcmpi
(szClass, pszName) == 0;
37
}
38
39
static
inline
BOOL
40
IsConsoleWnd
(
_In_opt_
HWND
hwndTarget)
41
{
42
return
IsWndClassName
(hwndTarget,
TEXT
(
"ConsoleWindowClass"
));
43
}
resource.h
cjkcode.h
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
indicml.h
void
Definition:
nsiface.idl:2307
TEXT
#define TEXT(s)
Definition:
k32.h:28
IsConsoleWnd
static BOOL IsConsoleWnd(_In_opt_ HWND hwndTarget)
Definition:
kbswitch.h:40
IsWndClassName
static BOOL IsWndClassName(_In_opt_ HWND hwndTarget, PCTSTR pszName)
Definition:
kbswitch.h:32
_In_opt_
#define _In_opt_
Definition:
no_sal2.h:212
PCTSTR
LPCSTR PCTSTR
Definition:
ntbasedef.h:500
shellapi.h
_countof
#define _countof(array)
Definition:
sndvol32.h:70
strsafe.h
resource.h
winbase.h
lstrcmpi
#define lstrcmpi
Definition:
winbase.h:3622
windef.h
wingdi.h
winnls.h
winreg.h
winuser.h
GetClassName
#define GetClassName
Definition:
winuser.h:5894
TCHAR
char TCHAR
Definition:
xmlstorage.h:189
base
applications
kbswitch
kbswitch.h
Generated on Mon Mar 9 2026 06:02:39 for ReactOS by
1.9.6