ReactOS
0.4.16-dev-555-g690643f
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
NtSetDefaultLocale.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS API tests
3
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4
* PURPOSE: Tests for the NtSetDefaultLocale API
5
* COPYRIGHT: Copyright 2023 George Bișoc <george.bisoc@reactos.org>
6
*/
7
8
#include "
precomp.h
"
9
10
START_TEST
(
NtSetDefaultLocale
)
11
{
12
NTSTATUS
Status
;
13
14
Status
=
NtSetDefaultLocale
(
TRUE
, 0xffffffff);
15
ok_ntstatus
(
Status
,
STATUS_INVALID_PARAMETER
);
16
17
Status
=
NtSetDefaultLocale
(
TRUE
, 0xfffffffe);
18
ok_ntstatus
(
Status
,
STATUS_INVALID_PARAMETER
);
19
20
Status
=
NtSetDefaultLocale
(
TRUE
, 0x7fffffff);
21
ok_ntstatus
(
Status
,
STATUS_INVALID_PARAMETER
);
22
23
Status
=
NtSetDefaultLocale
(
TRUE
, 0x7ffffffe);
24
ok_ntstatus
(
Status
,
STATUS_INVALID_PARAMETER
);
25
26
Status
=
NtSetDefaultLocale
(
TRUE
, 0x80000000);
27
ok_ntstatus
(
Status
,
STATUS_INVALID_PARAMETER
);
28
29
Status
=
NtSetDefaultLocale
(
TRUE
, 0x80000001);
30
ok_ntstatus
(
Status
,
STATUS_INVALID_PARAMETER
);
31
32
Status
=
NtSetDefaultLocale
(
TRUE
, 0x10000);
33
ok_ntstatus
(
Status
,
STATUS_INVALID_PARAMETER
);
34
35
Status
=
NtSetDefaultLocale
(
TRUE
, 1);
36
ok_ntstatus
(
Status
,
STATUS_OBJECT_NAME_NOT_FOUND
);
37
38
Status
=
NtSetDefaultLocale
(
TRUE
, 0x0C);
39
ok_ntstatus
(
Status
,
STATUS_OBJECT_NAME_NOT_FOUND
);
40
41
Status
=
NtSetDefaultLocale
(
TRUE
, 0x1000);
42
ok_ntstatus
(
Status
,
STATUS_OBJECT_NAME_NOT_FOUND
);
43
}
ok_ntstatus
#define ok_ntstatus(status, expected)
Definition:
atltest.h:135
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
TRUE
#define TRUE
Definition:
types.h:120
Status
Status
Definition:
gdiplustypes.h:25
NtSetDefaultLocale
NTSTATUS NTAPI NtSetDefaultLocale(IN BOOLEAN UserProfile, IN LCID DefaultLocaleId)
Definition:
locale.c:437
STATUS_INVALID_PARAMETER
#define STATUS_INVALID_PARAMETER
Definition:
udferr_usr.h:135
STATUS_OBJECT_NAME_NOT_FOUND
#define STATUS_OBJECT_NAME_NOT_FOUND
Definition:
udferr_usr.h:149
precomp.h
modules
rostests
apitests
ntdll
NtSetDefaultLocale.c
Generated on Tue Jan 21 2025 06:07:34 for ReactOS by
1.9.6