29 #if TE_PLATFORM == TE_PLATFORMCODE_MSWINDOWS 
   33 const std::string te::common::win::GetLastError()
 
   35   DWORD dwMessageId = ::GetLastError();
 
   39   FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
 
   42                 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
 
   48     return std::string(
"");
 
   50   std::string msg((
char*)(lpMsgBuf));
 
   57 #endif  // TE_PLATFORM == TE_PLATFORMCODE_MSWINDOWS 
This file contains several utility functions when dealing with Microsoft Windows specific API...