Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
WinScopedPreserveLastError Class Reference

some WinAPI functions SetLastError(0) on success, which is bad because it can hide previous errors. More...

#include <wutil.h>

Public Member Functions

 WinScopedPreserveLastError ()
 
 ~WinScopedPreserveLastError ()
 

Private Attributes

DWORD m_lastError
 

Detailed Description

some WinAPI functions SetLastError(0) on success, which is bad because it can hide previous errors.

this class takes care of restoring the previous value.

Definition at line 119 of file wutil.h.

Constructor & Destructor Documentation

WinScopedPreserveLastError::WinScopedPreserveLastError ( )
inline

Definition at line 122 of file wutil.h.

WinScopedPreserveLastError::~WinScopedPreserveLastError ( )
inline

Definition at line 128 of file wutil.h.

Member Data Documentation

DWORD WinScopedPreserveLastError::m_lastError
private

Definition at line 135 of file wutil.h.


The documentation for this class was generated from the following file: