Group: Event Logging - Library: advapi32
Reading entries from Event logs
BOOL ClearEventLog(
HANDLE hEventLog,
LPCTSTR lpBackupFileName
);
DECLARE INTEGER ClearEventLog IN advapi32;
INTEGER hEventLog,;
STRING lpBackupFileName
hEventLog [in] A handle to the event log to be cleared. This handle is returned by the OpenEventLog function.
lpBackupFileName [in] The name of the backup file. If this file already exists, the function fails. If the lpBackupFileName parameter is NULL, the current event log is not backed up.
If the function succeeds, the return value is nonzero.
The ClearEventLog function fails if the event log is empty or a file already exists with the same name as lpBackupFileName.
After this function returns, any handles that reference the cleared event log cannot be used to read the log.