|
-
July 14th, 2009, 01:08 PM
#1
Reading Events from an Event Log
Hi,
I have to develop an application to Display Events in a console as soons as they are logged into Windows Application log.
The console should display the Description of the Event.
I have reffered to MSDN and found that the function NotifyChangeEventLog(..) will help in acheving this task.
this is the link i refferred to http://msdn.microsoft.com/en-us/libr...77(VS.85).aspx
I tried to compile the sample code , but could not get the solution.
One more solution i got to know was using WMI to hanle events.
can some one please tell me if there is any easy solution to read an event as soon as it occurs.
Thanks in Advance,
Raghu A
-
July 15th, 2009, 02:02 AM
#2
Re: Reading Events from an Event Log
> I tried to compile the sample code , but could not get the solution.
???
It works perfectly (of course), like samples from SDK !
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|