7 #ifndef _LOG4SHIB_NTEVENTLOGAPPENDER_HH
8 #define _LOG4SHIB_NTEVENTLOGAPPENDER_HH
10 #ifdef WIN32 // only available on Win32
17 # define NOGDI // this will circumvent the ERROR #define in windows.h
18 # define LOG4SHIB_UNDEFINE_NOGDI
21 # ifndef WIN32_LEAN_AND_MEAN
22 # define WIN32_LEAN_AND_MEAN
23 # define LOG4SHIB_UNDEFINE_WIN32_LEAN_AND_MEAN
28 # ifdef LOG4SHIB_UNDEFINE_NOGDI
32 # ifdef LOG4SHIB_UNDEFINE_WIN32_LEAN_AND_MEAN
33 # undef WIN32_LEAN_AND_MEAN
36 #endif // done dealing with ERROR #define
66 virtual bool reopen();
74 virtual bool requiresLayout()
const;
76 virtual void setLayout(
Layout* layout);
82 HKEY regGetKey(TCHAR *subkey, DWORD *disposition);
83 void regSetString(HKEY hkey, TCHAR *name, TCHAR *value);
84 void regSetDword(HKEY hkey, TCHAR *name, DWORD value);
85 void addRegistryInfo(
const char *source);
101 #error NTEventLoggAppender is not available on on Win32 platforms
104 #endif // _LOG4SHIB_NTEVENTLOGAPPENDER_HH