BOOL GetOldestEventLogRecord(hEventLog, pdwOldestRecord) | |||||
HANDLE hEventLog; | /* open event-log handle | */ | |||
PDWORD pdwOldestRecord; | /* buffer for number of oldest record | */ |
The GetOldestEventLogRecord function retrieves the absolute record number of the oldest record in the specified event log.
hEventLog
Specifies an open event-log handle (a handle returned by the OpenEventLog or OpenBackupEventLog function).
pdwOldestRecord
Points to variable that receives the absolute record number of the oldest record in the specified event log.
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
GetNumberOfEventLogRecords