FreeRDP
Loading...
Searching...
No Matches
error.c
1
20#include <winpr/config.h>
21
22#include <winpr/error.h>
23#include <winpr/wlog.h>
24
25#ifndef _WIN32
26
27#include <stdio.h>
28
29#include <winpr/nt.h>
30
31UINT GetErrorMode(void)
32{
33 WLog_ERR("TODO", "TOdO: implement");
34 return 0;
35}
36
37UINT SetErrorMode(WINPR_ATTR_UNUSED UINT uMode)
38{
39 WLog_ERR("TODO", "TOdO: implement");
40 return 0;
41}
42
43DWORD GetLastError(VOID)
44{
45 PTEB pt = NtCurrentTeb();
46 if (pt)
47 {
48 return pt->LastErrorValue;
49 }
50 return ERROR_OUTOFMEMORY;
51}
52
53VOID SetLastError(DWORD dwErrCode)
54{
55 PTEB pt = NtCurrentTeb();
56 if (pt)
57 {
58 pt->LastErrorValue = dwErrCode;
59 }
60}
61
62VOID RestoreLastError(WINPR_ATTR_UNUSED DWORD dwErrCode)
63{
64 WLog_ERR("TODO", "TOdO: implement");
65}
66
67VOID RaiseException(WINPR_ATTR_UNUSED DWORD dwExceptionCode,
68 WINPR_ATTR_UNUSED DWORD dwExceptionFlags,
69 WINPR_ATTR_UNUSED DWORD nNumberOfArguments,
70 WINPR_ATTR_UNUSED CONST ULONG_PTR* lpArguments)
71{
72 WLog_ERR("TODO", "TOdO: implement");
73}
74
75LONG UnhandledExceptionFilter(WINPR_ATTR_UNUSED PEXCEPTION_POINTERS ExceptionInfo)
76{
77 WLog_ERR("TODO", "TOdO: implement");
78 return 0;
79}
80
81LPTOP_LEVEL_EXCEPTION_FILTER
82SetUnhandledExceptionFilter(
83 WINPR_ATTR_UNUSED LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter)
84{
85 WLog_ERR("TODO", "TOdO: implement");
86 return NULL;
87}
88
89PVOID AddVectoredExceptionHandler(WINPR_ATTR_UNUSED ULONG First,
90 WINPR_ATTR_UNUSED PVECTORED_EXCEPTION_HANDLER Handler)
91{
92 WLog_ERR("TODO", "TOdO: implement");
93 return NULL;
94}
95
96ULONG RemoveVectoredExceptionHandler(WINPR_ATTR_UNUSED PVOID Handle)
97{
98 WLog_ERR("TODO", "TOdO: implement");
99 return 0;
100}
101
102PVOID AddVectoredContinueHandler(WINPR_ATTR_UNUSED ULONG First,
103 WINPR_ATTR_UNUSED PVECTORED_EXCEPTION_HANDLER Handler)
104{
105 WLog_ERR("TODO", "TOdO: implement");
106 return NULL;
107}
108
109ULONG RemoveVectoredContinueHandler(WINPR_ATTR_UNUSED PVOID Handle)
110{
111 WLog_ERR("TODO", "TOdO: implement");
112 return 0;
113}
114
115#endif