add log name constants

This commit is contained in:
Doug MacEachern committed 2005-09-22 15:28:39 +00:00
1 parent 48c96918d8
commit 1ac57c1137
2 files changed
+7 -1

No files matched your search

@@ -4,6 +4,10 @@ public class EventLog extends Win32 {
int eventLogHandle = 0; // holds the event log HANDLE
public static final String SYSTEM = "SYSTEM";
public static final String APPLICATION = "APPLICATION";
public static final String SECURITY = "SECURITY";
// Event log types as defined in WINNT.H
public static final int EVENTLOG_SUCCESS = 0x0000;
public static final int EVENTLOG_ERROR_TYPE = 0x0001;
@@ -163,7 +163,9 @@ public class EventLogThread implements Runnable {
public static void main(String[] args) {
if (args.length == 0) {
args = new String[] {
"System", "Application", "Security"
EventLog.SYSTEM,
EventLog.APPLICATION,
EventLog.SECURITY
};
}