Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Omniifr::Win Class Reference

Utility class, contains functions that Windows should have, but doesn't. More...

List of all members.

Static Public Member Functions

static const char * strerror (DWORD e)
static void perror (const char *s=NULL)


Detailed Description

Utility class, contains functions that Windows should have, but doesn't.

Definition at line 54 of file daemon_windows.cc.


Member Function Documentation

static void Omniifr::Win::perror const char *  s = NULL  )  [inline, static]
 

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   }

static const char* Omniifr::Win::strerror DWORD  e  )  [inline, static]
 

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   }


The documentation for this class was generated from the following file:
Generated on Fri Mar 4 13:03:58 2005 for OmniIFR by  doxygen 1.4.1