Click to See Complete Forum and Search --> : Event Logging


ashokvishnu
May 19th, 2006, 01:05 AM
Hi All,

I am new to C++ and windows programming. We have to create an event logging mechanism similar to the one windows is already having, but we need to add some extra functionalities. I was going through win event log api. I created an event log file "myeventlog" under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\MyEventLog. I wrote some data to the file using ReportEvent event function. While looking at the file I see that some data is there. However while reading the file using GetNumberOfEventLogRecords i get zero. Niether do i get any record by using ReadEventLog function. Can anyone suggest any solutions?

ashokvishnu
May 23rd, 2006, 11:41 PM
No solutions from the experts here?

sreehari
May 24th, 2006, 03:04 AM
checck this link . this article does exactly what you are tryin to achieve.

WindowsNT Event Log Viewer (http://www.codeproject.com/system/sysevent.asp#xx234987xx)