(Platform: Win NT4.0 VC++ 5.0)
I am trying to retrieve a (card) driver's messages in the Event Log using OpenEventLog and ReadEventLog. The Registry shows the driver source name as being available.
My call to OpenEventLog returns a valid handle and looks like this:
hEicon = OpenEventLog( NULL, "EiconCards" );
My first problem arises when I ask for the number of records using
GetNUmberOfEventLogRecords( hEicon, &NumberOfRecords ).
The NumberOfRecords=700 but I only have 6 EiconCards related messages in the Event Log!? I think it returns the entire records available in Event Log. Should I expect only records for the Source Name I specify?
When I go ahead and use ReadEventLog, I do not get the Records associated with EiconCards but some other service.
Any suggestions concerning my problem?