20#include <winpr/config.h>
22#include <winpr/error.h>
23#include <winpr/wlog.h>
31UINT GetErrorMode(
void)
33 WLog_ERR(
"TODO",
"TOdO: implement");
37UINT SetErrorMode(WINPR_ATTR_UNUSED UINT uMode)
39 WLog_ERR(
"TODO",
"TOdO: implement");
43DWORD GetLastError(VOID)
45 PTEB pt = NtCurrentTeb();
48 return pt->LastErrorValue;
50 return ERROR_OUTOFMEMORY;
53VOID SetLastError(DWORD dwErrCode)
55 PTEB pt = NtCurrentTeb();
58 pt->LastErrorValue = dwErrCode;
62VOID RestoreLastError(WINPR_ATTR_UNUSED DWORD dwErrCode)
64 WLog_ERR(
"TODO",
"TOdO: implement");
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)
72 WLog_ERR(
"TODO",
"TOdO: implement");
75LONG UnhandledExceptionFilter(WINPR_ATTR_UNUSED PEXCEPTION_POINTERS ExceptionInfo)
77 WLog_ERR(
"TODO",
"TOdO: implement");
81LPTOP_LEVEL_EXCEPTION_FILTER
82SetUnhandledExceptionFilter(
83 WINPR_ATTR_UNUSED LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter)
85 WLog_ERR(
"TODO",
"TOdO: implement");
89PVOID AddVectoredExceptionHandler(WINPR_ATTR_UNUSED ULONG First,
90 WINPR_ATTR_UNUSED PVECTORED_EXCEPTION_HANDLER Handler)
92 WLog_ERR(
"TODO",
"TOdO: implement");
96ULONG RemoveVectoredExceptionHandler(WINPR_ATTR_UNUSED PVOID Handle)
98 WLog_ERR(
"TODO",
"TOdO: implement");
102PVOID AddVectoredContinueHandler(WINPR_ATTR_UNUSED ULONG First,
103 WINPR_ATTR_UNUSED PVECTORED_EXCEPTION_HANDLER Handler)
105 WLog_ERR(
"TODO",
"TOdO: implement");
109ULONG RemoveVectoredContinueHandler(WINPR_ATTR_UNUSED PVOID Handle)
111 WLog_ERR(
"TODO",
"TOdO: implement");