27 #include "../Defines.h" 
   30 #if TE_PLATFORM == TE_PLATFORMCODE_MSWINDOWS 
   40   FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
 
   43                 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
 
   49     return std::string(
"");
 
   51   std::string msg((
char*)(lpMsgBuf));
 
   58 #endif  // TE_PLATFORM == TE_PLATFORMCODE_MSWINDOWS 
TECOMMONEXPORT const std::string GetLastError()
It obtains the last thread's error message in a Windows System. 
 
This file contains several utility functions when dealing with Microsoft Windows specific API...