Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to write event infor to system event log?

3 views
Skip to first unread message

Abei

unread,
Jul 1, 2009, 3:05:01 AM7/1/09
to

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

Volodymyr Shcherbyna

unread,
Jul 1, 2009, 3:29:20 AM7/1/09
to

Hello,

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

--
Volodymyr M. Shcherbyna, blog: http://www.shcherbyna.com/
(This posting is provided "AS IS" with no warranties, and confers no
rights)
"Abei" <Ab...@discussions.microsoft.com> wrote in message
news:2F258662-DBFC-43E6...@microsoft.com...

Abei

unread,
Jul 1, 2009, 6:27:06 AM7/1/09
to

Hi Volodymyr!
Thank you very much!

--
Abei

Doron Holan [MSFT]

unread,
Jul 1, 2009, 3:29:49 PM7/1/09
to

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.


"Abei" <Ab...@discussions.microsoft.com> wrote in message

news:BA3E5E5C-9773-4A8D...@microsoft.com...

Abei

unread,
Jul 1, 2009, 11:12:01 PM7/1/09
to

Thank Doron for your reminding!

--
Abei

0 new messages