ReactOS
0.4.16-dev-1040-g85afe48
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
shared_utils.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS system libraries
4
* FILE: dll/win32/kernel32/client/utils_shared.c
5
* PURPOSE: Utility functions shared with kernel32_vista
6
* PROGRAMMER: Thomas Faber
7
*/
8
9
/* INCLUDES *******************************************************************/
10
11
#include <
k32.h
>
12
#include <
strsafe.h
>
13
14
#define NDEBUG
15
#include <debug.h>
16
17
/*
18
* @implemented
19
*/
20
DWORD
21
WINAPI
22
BaseSetLastNTError
(
IN
NTSTATUS
Status
)
23
{
24
DWORD
dwErrCode;
25
26
/* Convert from NT to Win32, then set */
27
dwErrCode =
RtlNtStatusToDosError
(
Status
);
28
SetLastError
(dwErrCode);
29
return
dwErrCode;
30
}
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
SetLastError
#define SetLastError(x)
Definition:
compat.h:752
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
Status
Status
Definition:
gdiplustypes.h:25
RtlNtStatusToDosError
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
k32.h
BaseSetLastNTError
DWORD WINAPI BaseSetLastNTError(IN NTSTATUS Status)
Definition:
shared_utils.c:22
strsafe.h
IN
#define IN
Definition:
typedefs.h:39
WINAPI
#define WINAPI
Definition:
msvc.h:6
dll
win32
kernel32
client
shared_utils.c
Generated on Fri Apr 25 2025 06:04:16 for ReactOS by
1.9.6