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