This is a very useful library for me, but I've noticed some issues in my use case where EventLog.Query() almost immediately returns with a ERROR_TIMEOUT message. Turns out that the timeout argument of EvtNext is actually milliseconds, not seconds, so any operation taking longer than 60ms will fail. Changing it to 60000 fixed the issues for me, you should probably do the same. 😉
This is a very useful library for me, but I've noticed some issues in my use case where
EventLog.Query()almost immediately returns with a ERROR_TIMEOUT message. Turns out that thetimeoutargument of EvtNext is actually milliseconds, not seconds, so any operation taking longer than 60ms will fail. Changing it to 60000 fixed the issues for me, you should probably do the same. 😉