[Win32utils-devel] EventLog#tail followup
djberg96 at gmail.com
Fri May 19 22:49:13 EDT 2006
The solution I see is something like this:
* Set a @last instance variable in the constructor.
* In the read_last_record function, check to see if @last is nil. If it
is nil, then it's our first read. Use the current approach, and set
@last to the record number.
* If @last isn't nil, use EVENTLOG_FORWARDS_READ | EVENTLOG_SEEK_READ
flags instead, and use @last + 1 as the offset.
I tested this in the pure Ruby version and it seems to work fine.
More information about the win32utils-devel