BOOL BackupEventLog(hEventLog, lpszBackupFileName) | |||||
HANDLE hEventLog; | /* open event-log handle | */ | |||
LPTSTR lpszBackupFileName; | /* name of backup file | */ |
The BackupEventLog function saves an event log into a backup file. The function does not clear the event log.
hEventLog
Specifies an open event-log handle (a handle returned by the OpenEventLog or OpenBackupEventLog function).
lpszBackupFileName
Points to a null-terminated string that names the backup file.
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.
OpenBackupEventLog