V
VISTA: EVENTLOG-RECORD NUMBER Problems
Hello Experts,
On VISTA, both 32 bit as well as 64 bit, I observe a few problems with
Eventlog APIs when Record Numbers in the EventLog start from a higher number
rather than 1.
(Note this can be achieved by limiting the size and marking Overwrite options)
Comparison was done using Following WMI CMI Studio.
Example Query
SELECT * FROM Win32_NTLogEvent where Logfile="Application"
ISSUE1
======
Browsing EventLogFile through ReadEventLog give inconsistent results:
Value of 'RecordNumber' member of the strucure EVENTLOGRECORD differ from
what is observed in WMI CMI Studio
These Obtained RecordNumber values give Correct result using EventLogApis,
like reading Message But the same number doesn't have validity in WMI Studio
ISSUE2
=====
'GetOldestEventLogRecord' API returns always 1, even if oldest RecordNumber
is greater than 1
Thanks,
Pankaj
On VISTA, both 32 bit as well as 64 bit, I observe a few problems with
Eventlog APIs when Record Numbers in the EventLog start from a higher number
rather than 1.
(Note this can be achieved by limiting the size and marking Overwrite options)
Comparison was done using Following WMI CMI Studio.
Example Query
SELECT * FROM Win32_NTLogEvent where Logfile="Application"
ISSUE1
======
Browsing EventLogFile through ReadEventLog give inconsistent results:
Value of 'RecordNumber' member of the strucure EVENTLOGRECORD differ from
what is observed in WMI CMI Studio
These Obtained RecordNumber values give Correct result using EventLogApis,
like reading Message But the same number doesn't have validity in WMI Studio
ISSUE2
=====
'GetOldestEventLogRecord' API returns always 1, even if oldest RecordNumber
is greater than 1
Thanks,
Pankaj