ReactOS  0.4.15-dev-3217-gc6d1646
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
23 {
24  DWORD dwErrCode;
25 
26  /* Convert from NT to Win32, then set */
27  dwErrCode = RtlNtStatusToDosError(Status);
28  SetLastError(dwErrCode);
29  return dwErrCode;
30 }
#define IN
Definition: typedefs.h:39
LONG NTSTATUS
Definition: precomp.h:26
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
Status
Definition: gdiplustypes.h:24
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
#define SetLastError(x)
Definition: compat.h:611
DWORD WINAPI BaseSetLastNTError(IN NTSTATUS Status)
Definition: shared_utils.c:22