ReactOS 0.4.15-dev-7788-g1ad9096
error.c
Go to the documentation of this file.
1#include <win32k.h>
2
3/*
4 * @implemented
5 * http://msdn.microsoft.com/en-us/library/ff564940%28VS.85%29.aspx
6 */
10{
11 PTEB pTeb = NtCurrentTeb();
12 return (pTeb ? pTeb->LastErrorValue : ERROR_SUCCESS);
13}
14
15/*
16 * @implemented
17 * http://msdn.microsoft.com/en-us/library/ff565015%28VS.85%29.aspx
18 * Win: UserSetLastError
19 */
20VOID
23{
24 PTEB pTeb = NtCurrentTeb();
25 if (pTeb)
26 pTeb->LastErrorValue = iError;
27}
28
29VOID
32{
34}
LONG NTSTATUS
Definition: precomp.h:26
#define ERROR_SUCCESS
Definition: deptool.c:10
#define APIENTRY
Definition: api.h:79
Status
Definition: gdiplustypes.h:25
#define NtCurrentTeb
#define _In_
Definition: ms_sal.h:308
#define FASTCALL
Definition: nt_native.h:50
ULONG NTAPI RtlNtStatusToDosError(IN NTSTATUS Status)
Definition: error.c:96
Definition: compat.h:836
ULONG LastErrorValue
Definition: compat.h:843
uint32_t ULONG
Definition: typedefs.h:59
ULONG APIENTRY EngGetLastError(VOID)
Definition: error.c:9
VOID FASTCALL SetLastNtError(_In_ NTSTATUS Status)
Definition: error.c:31
VOID APIENTRY EngSetLastError(_In_ ULONG iError)
Definition: error.c:22