Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > How to write event infor to system event log?

Reply
Fix Vista Errors
Thread Tools Display Modes

How to write event infor to system event log?

 
 
Abei
Guest
Posts: n/a

 
      07-01-2009




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
 
Reply With Quote
 
Volodymyr Shcherbyna
Guest
Posts: n/a

 
      07-01-2009

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" <> wrote in message
news:2F258662-DBFC-43E6-B204-...
> 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



 
Reply With Quote
 
Abei
Guest
Posts: n/a

 
      07-01-2009

Hi Volodymyr!
Thank you very much!

--
Abei


"Volodymyr Shcherbyna" wrote:

> 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" <> wrote in message
> news:2F258662-DBFC-43E6-B204-...
> > 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

>
>
>

 
Reply With Quote
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      07-01-2009

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" <> wrote in message
news:BA3E5E5C-9773-4A8D-99F9-...
> Hi Volodymyr!
> Thank you very much!
>
> --
> Abei
>
>
> "Volodymyr Shcherbyna" wrote:
>
>> 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" <> wrote in message
>> news:2F258662-DBFC-43E6-B204-...
>> > 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

>>
>>
>>

 
Reply With Quote
 
Abei
Guest
Posts: n/a

 
      07-02-2009

Thank Doron for your reminding!

--
Abei


"Doron Holan [MSFT]" wrote:

> 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" <> wrote in message
> news:BA3E5E5C-9773-4A8D-99F9-...
> > Hi Volodymyr!
> > Thank you very much!
> >
> > --
> > Abei
> >
> >
> > "Volodymyr Shcherbyna" wrote:
> >
> >> 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" <> wrote in message
> >> news:2F258662-DBFC-43E6-B204-...
> >> > 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
> >>
> >>
> >>

>

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Event ID 10 — Event Filter Query Functionality RandyERaymond Windows Vista Hardware 0 02-23-2009 05:15 PM
Event ID 10- Event Filter Query Functionality 2Lauraroberts Windows Vista Performance 1 11-24-2008 06:22 AM
IE 7 Event Viewer shows no event details. Kerry Kincaid Internet Explorer 3 04-23-2007 03:03 PM
Unable to fetch the Event Log - Event Description Vineet Das Windows Vista Security 4 08-24-2006 07:52 AM
Event ID 1904 HHCTRL in Event Manager Lori Ann Kuiper Windows Media Center 0 07-14-2006 12:12 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59