00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _WIN32_LAST_ERROR_H_
00021 #define _WIN32_LAST_ERROR_H_
00022
00023 #include <string>
00024 #include <windows.h>
00025
00026 namespace TestFrameWork
00027 {
00028
00030 class Win32LastError
00031 {
00032 public:
00034 Win32LastError(void);
00035
00037 ~Win32LastError(void);
00038
00039 DWORD GetErrorCode(void) const;
00040
00043 const std::wstring& ToString(void) const;
00044
00045 private:
00046 DWORD m_code;
00047
00049 std::wstring m_stringError;
00050 };
00051
00052 }
00053
00054 #endif