ReactOS  0.4.15-dev-2961-gecb0c09
shared_utils.c File Reference
#include <k32.h>
#include <strsafe.h>
#include <debug.h>
Include dependency graph for shared_utils.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

DWORD WINAPI BaseSetLastNTError (IN NTSTATUS Status)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 14 of file shared_utils.c.

Function Documentation

◆ BaseSetLastNTError()

DWORD WINAPI BaseSetLastNTError ( IN NTSTATUS  Status)

Definition at line 22 of file shared_utils.c.

23 {
24  DWORD dwErrCode;
25 
26  /* Convert from NT to Win32, then set */
27  dwErrCode = RtlNtStatusToDosError(Status);
28  SetLastError(dwErrCode);
29  return dwErrCode;
30 }
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
Status
Definition: gdiplustypes.h:24
unsigned long DWORD
Definition: ntddk_ex.h:95
#define SetLastError(x)
Definition: compat.h:611