How to write event infor to system event log?

How to write event infor to system event log?

Post by QWJla » Thu, 02 Jul 2009 16:05:01



Hi!
We want to record some event infor by system event log.
That is user can view these event infor by eventvwr.msc tool.
How to do this in driver?
Thanks!

--
Abei
 
 
 

How to write event infor to system event log?

Post by Volodymyr » Thu, 02 Jul 2009 16:29:20


Hello,

In driver you can use IoAllocateErrorLogEntry and IoWriteErrorLogEntry
functions to write into 'System' event entry.

--
Volodymyr M. Shcherbyna, blog: http://www.yqcomputer.com/
(This posting is provided "AS IS" with no warranties, and confers no
rights)

 
 
 

How to write event infor to system event log?

Post by QWJla » Thu, 02 Jul 2009 19:27:06


Hi Volodymyr!
Thank you very much!

--
Abei
 
 
 

How to write event infor to system event log?

Post by Doron Hola » Fri, 03 Jul 2009 04:29:49


be careful about the size of the packet you request, there is rather
maximum in place and IIRC the alloc call will not fail and still give you a
packet to report

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.
 
 
 

How to write event infor to system event log?

Post by QWJla » Fri, 03 Jul 2009 12:12:01


Thank Doron for your reminding!

--
Abei