Saves the event log to a backup file
#include <EventLog.au3>
_EventLog__Backup ( $hEventLog, $sFileName )
$hEventLog | Handle to the event log |
$sFileName | The name of the backup file |
Success: | True |
Failure: | False |
The function does not clear the event log. The function fails if the user does not have the SE_BACKUP_NAME privilege.
#include <EventLog.au3>
Example()
Func Example()
Local $hEventLog
$hEventLog = _EventLog__Open("", "Application")
_EventLog__Backup($hEventLog, "C:\EventLog.bak")
_EventLog__Close($hEventLog)
EndFunc ;==>Example