add log name constants

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

View File

@ -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;

View File

@ -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
};
}