From acb7d874183dfeb069f330f8891393e373e4fd0b Mon Sep 17 00:00:00 2001 From: vxunderground <57078196+vxunderground@users.noreply.github.com> Date: Thu, 14 Jul 2022 22:41:30 -0500 Subject: [PATCH] Create EhGetLastError.cpp --- Windows API/EhGetLastError.cpp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Windows API/EhGetLastError.cpp diff --git a/Windows API/EhGetLastError.cpp b/Windows API/EhGetLastError.cpp new file mode 100644 index 0000000..acdd2a5 --- /dev/null +++ b/Windows API/EhGetLastError.cpp @@ -0,0 +1,4 @@ +DWORD EhGetLastError(VOID) +{ + return GetTeb()->LastErrorValue; +}