CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    2

    Question 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

  2. #2
    Join Date
    Dec 2008
    Posts
    114

    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
  •  





Click Here to Expand Forum to Full Width

Featured