}
#undef __RETSTR
-
-#if 0 /* No one seems to be using these */
-char *ber_pvt_wsa_last_errstring( void )
-{
- return ber_pvt_wsa_err2string( WSAGetLastError() );
-}
-
-#include <windows.h>
-
-char *GetErrorString( int err )
-{
- static char msgBuf[1024];
-
- FormatMessage(
- FORMAT_MESSAGE_FROM_SYSTEM,
- NULL,
- err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
- msgBuf, 1024, NULL );
-
- return msgBuf;
-}
-
-char *GetLastErrorString( void )
-{
- return GetErrorString( GetLastError() );
-}
-#endif
void (*stopfunc)(int);
-/* in nt_err.c */
char *GetLastErrorString( void );
int srv_install(LPCTSTR lpszServiceName, LPCTSTR lpszDisplayName,
}
}
+char *GetErrorString( int err )
+{
+ static char msgBuf[1024];
+
+ FormatMessage(
+ FORMAT_MESSAGE_FROM_SYSTEM,
+ NULL,
+ err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+ msgBuf, 1024, NULL );
+
+ return msgBuf;
+}
+
+char *GetLastErrorString( void )
+{
+ return GetErrorString( GetLastError() );
+}
#endif