WinStd
Windows Win32 API using Standard C++
|
Saves GetLastError and restores SetLastError when going out of scope. More...
#include <WinStd/Common.h>
Public Member Functions | |
last_error_saver (DWORD error=GetLastError()) | |
Saves the calling thread's last-error code value. | |
~last_error_saver () | |
Sets the last-error code for the calling thread. | |
Protected Attributes | |
DWORD | m_error |
Saves GetLastError and restores SetLastError when going out of scope.
|
inline |
Saves the calling thread's last-error code value.
|
inline |
Sets the last-error code for the calling thread.