ReactOS
0.4.16-dev-976-g18fc5a1
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
error.c
Go to the documentation of this file.
1
#include <
win32k.h
>
2
3
/*
4
* @implemented
5
* https://learn.microsoft.com/en-us/windows/win32/api/winddi/nf-winddi-enggetlasterror
6
*/
7
ULONG
8
APIENTRY
9
EngGetLastError
(
VOID
)
10
{
11
PTEB
pTeb =
NtCurrentTeb
();
12
return
(pTeb ? pTeb->
LastErrorValue
:
ERROR_SUCCESS
);
13
}
14
15
/*
16
* @implemented
17
* https://learn.microsoft.com/en-us/windows/win32/api/winddi/nf-winddi-engsetlasterror
18
* Win: UserSetLastError
19
*/
20
VOID
21
APIENTRY
22
EngSetLastError
(
_In_
ULONG
iError)
23
{
24
PTEB
pTeb =
NtCurrentTeb
();
25
if
(pTeb)
26
pTeb->
LastErrorValue
= iError;
27
}
28
29
VOID
30
FASTCALL
31
SetLastNtError
(
_In_
NTSTATUS
Status
)
32
{
33
EngSetLastError
(
RtlNtStatusToDosError
(
Status
));
34
}
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
ERROR_SUCCESS
#define ERROR_SUCCESS
Definition:
deptool.c:10
APIENTRY
#define APIENTRY
Definition:
api.h:79
Status
Status
Definition:
gdiplustypes.h:25
void
Definition:
nsiface.idl:2307
NtCurrentTeb
#define NtCurrentTeb
Definition:
iphlpapi_private.h:4
_In_
#define _In_
Definition:
no_sal2.h:158
FASTCALL
#define FASTCALL
Definition:
nt_native.h:50
RtlNtStatusToDosError
ULONG NTAPI RtlNtStatusToDosError(IN NTSTATUS Status)
Definition:
error.c:96
_TEB
Definition:
compat.h:836
_TEB::LastErrorValue
ULONG LastErrorValue
Definition:
compat.h:843
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
win32k.h
EngGetLastError
ULONG APIENTRY EngGetLastError(VOID)
Definition:
error.c:9
SetLastNtError
VOID FASTCALL SetLastNtError(_In_ NTSTATUS Status)
Definition:
error.c:31
EngSetLastError
VOID APIENTRY EngSetLastError(_In_ ULONG iError)
Definition:
error.c:22
win32ss
gdi
eng
error.c
Generated on Sat Apr 12 2025 06:15:38 for ReactOS by
1.9.6