ReactOS
0.4.16-dev-1537-g4e425b5
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
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
15
#include "
resource.h
"
16
#include "
indicdll/resource.h
"
17
18
#define CCH_LAYOUT_ID 8
// Character Count of a layout ID like "00000409"
19
#define CCH_ULONG_DEC 10
// Maximum Character Count of a ULONG in decimal
20
21
// Far East Language IDs
22
#define LANGID_CHINESE_SIMPLIFIED MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED)
23
#define LANGID_CHINESE_TRADITIONAL MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL)
24
#define LANGID_JAPANESE MAKELANGID(LANG_JAPANESE, SUBLANG_DEFAULT)
25
#define LANGID_KOREAN MAKELANGID(LANG_KOREAN, SUBLANG_DEFAULT)
26
27
#define WM_LANG_CHANGED (WM_USER + 10200)
28
#define WM_WINDOW_ACTIVATE (WM_USER + 10300)
29
30
#define IME_STATUS_NO_IME 0
31
#define IME_STATUS_IME_CLOSED 1
32
#define IME_STATUS_IME_OPEN 2
33
#define IME_STATUS_IME_NATIVE 4
34
#define IME_STATUS_IME_FULLSHAPE 8
35
36
static
inline
BOOL
37
IsWndClassName
(
_In_opt_
HWND
hwndTarget,
PCTSTR
pszName)
38
{
39
TCHAR
szClass[32];
40
GetClassName
(hwndTarget, szClass,
_countof
(szClass));
41
return
lstrcmpi
(szClass, pszName) == 0;
42
}
43
44
static
inline
BOOL
45
IsConsoleWnd
(
_In_opt_
HWND
hwndTarget)
46
{
47
return
IsWndClassName
(hwndTarget,
TEXT
(
"ConsoleWindowClass"
));
48
}
resource.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:45
IsWndClassName
static BOOL IsWndClassName(_In_opt_ HWND hwndTarget, PCTSTR pszName)
Definition:
kbswitch.h:37
_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:3914
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 Sat Jul 26 2025 06:02:26 for ReactOS by
1.9.6