add log name constants
This commit is contained in:
parent
48c96918d8
commit
1ac57c1137
@ -4,6 +4,10 @@ public class EventLog extends Win32 {
|
|||||||
|
|
||||||
int eventLogHandle = 0; // holds the event log HANDLE
|
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
|
// Event log types as defined in WINNT.H
|
||||||
public static final int EVENTLOG_SUCCESS = 0x0000;
|
public static final int EVENTLOG_SUCCESS = 0x0000;
|
||||||
public static final int EVENTLOG_ERROR_TYPE = 0x0001;
|
public static final int EVENTLOG_ERROR_TYPE = 0x0001;
|
||||||
|
@ -163,7 +163,9 @@ public class EventLogThread implements Runnable {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
if (args.length == 0) {
|
if (args.length == 0) {
|
||||||
args = new String[] {
|
args = new String[] {
|
||||||
"System", "Application", "Security"
|
EventLog.SYSTEM,
|
||||||
|
EventLog.APPLICATION,
|
||||||
|
EventLog.SECURITY
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user