1 // Windows/ErrorMsg.h 2 3 #ifndef __WINDOWS_ERROR_MSG_H 4 #define __WINDOWS_ERROR_MSG_H 5 6 #include "../Common/MyString.h" 7 8 namespace NWindows { 9 namespace NError { 10 11 UString MyFormatMessage(DWORD errorCode); MyFormatMessage(HRESULT errorCode)12inline UString MyFormatMessage(HRESULT errorCode) { return MyFormatMessage((DWORD)errorCode); } 13 14 }} 15 16 #endif 17