ReactOS
0.4.16-dev-91-g764881a
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 Sat Oct 5 2024 06:03:52 for ReactOS by
1.9.6