ReactOS  0.4.14-dev-49-gfb4591c
error.c
Go to the documentation of this file.
1 #include <win32k.h>
2 
3 #define NDEBUG
4 #include <debug.h>
5 
6 /*
7  * @implemented
8  * http://msdn.microsoft.com/en-us/library/ff564940%28VS.85%29.aspx
9  */
10 ULONG
13 {
14  PTEB pTeb = NtCurrentTeb();
15  if (pTeb)
16  return NtCurrentTeb()->LastErrorValue;
17  else
18  return ERROR_SUCCESS;
19 }
20 
21 /*
22  * @implemented
23  * http://msdn.microsoft.com/en-us/library/ff565015%28VS.85%29.aspx
24  */
25 VOID
28 {
29  PTEB pTeb = NtCurrentTeb();
30  if (pTeb)
31  pTeb->LastErrorValue = iError;
32 }
33 
34 VOID
37 {
39 }
#define ERROR_SUCCESS
Definition: deptool.c:10
LONG NTSTATUS
Definition: precomp.h:26
VOID APIENTRY EngSetLastError(_In_ ULONG iError)
Definition: error.c:27
#define FASTCALL
Definition: nt_native.h:50
VOID FASTCALL SetLastNtError(NTSTATUS Status)
Definition: error.c:36
ULONG APIENTRY EngGetLastError(VOID)
Definition: error.c:12
Status
Definition: gdiplustypes.h:24
ULONG NTAPI RtlNtStatusToDosError(IN NTSTATUS Status)
Definition: error.c:96
#define _In_
Definition: no_sal2.h:204
Definition: compat.h:484
FORCEINLINE struct _TEB * NtCurrentTeb(VOID)
Definition: psfuncs.h:420
ULONG LastErrorValue
Definition: compat.h:492
unsigned int ULONG
Definition: retypes.h:1
#define APIENTRY
Definition: api.h:79