public class EventLogTail {
private static void tail(String name, Tail tail) throws Win32Exception {
EventLog log = new EventLog();
log.open(name);
int max = log.getNumberOfRecords();
if (tail.number < max) {
max = tail.number;
}
int last = log.getNewestRecord()+1;