4 #define __RETSTR( x ) case x: return #x;
6 char *GetErrorString( int err )
8 static char msgBuf[1024];
11 FORMAT_MESSAGE_FROM_SYSTEM,
13 err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
18 char *GetLastErrorString( void )
20 return GetErrorString( GetLastError() );