_EventLog__Backup
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 |
Возвращаемое значение
Успех: | Возвращает True |
Ошибка: | Возвращает False |
Примечания
The function does not clear the event log. The function fails if the user does not have the SE_BACKUP_NAMEСм. также
_EventLog__OpenBackupПример
#include <EventLog.au3>
_Main()
Func _Main()
Local $hEventLog
$hEventLog = _EventLog__Open("", "Application")
_EventLog__Backup($hEventLog, "C:\EventLog.bak")
_EventLog__Close($hEventLog)
EndFunc ;==>_Main