Static Public Member Functions | |
| static const char * | strerror (DWORD e) |
| static void | perror (const char *s=NULL) |
Definition at line 54 of file daemon_windows.cc.
|
|
Definition at line 71 of file daemon_windows.cc. 00072 {
00073 if(s)
00074 {
00075 Service::log(s);
00076 Service::log(": ");
00077 }
00078 Service::log(Win::strerror(::GetLastError()));
00079 }
|
|
|
Definition at line 57 of file daemon_windows.cc. 00058 {
00059 LPVOID buf;
00060 ::FormatMessage(
00061 FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
00062 NULL,
00063 e,
00064 MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT),
00065 (LPTSTR)&buf,
00066 0, NULL
00067 );
00068 return (const char*)(buf);
00069 }
|
1.4.1