6 #ifndef _INC_cNTEventLog_H
7 #define _INC_cNTEventLog_H
12 #include "../GrayLibBase.h"
14 #if defined(_WIN32) && ! defined(UNDER_CE)
28 HANDLE m_hEventSource;
40 bool isInstalled()
const
47 bool ReportEventX(WORD wType, WORD wCategory, DWORD dwEventID);
48 bool _cdecl ReportEventf(WORD wType, WORD wCategory, DWORD dwEventID, ...);
51 class GRAYLIB_LINK cNTEventAppender :
public cLogAppender,
public cRefBase,
public cNTEventLog
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define IUNKNOWN_DISAMBIG(TYPE)
Definition: IUnknown.h:92
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
#define HANDLE_NULL
Invalid OS handle for _WIN32. Not invalid OS handle for linux.
Definition: cOSHandle.h:21
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22
char LOGCHAR_t
always just use UTF8 for logs, don't bother with UNICODE.
Definition: cLogLevel.h:17