_EventLog__Clear
Clears the event log
#include <EventLog.au3>
_EventLog__Clear($hEventLog, $sFileName)
Параметры
$hEventLog | Handle to the event log |
$sFileName |
The name of the backup file. If the name is blank, the current event log is not backed up. |
Возвращаемое значение
Успех: | Возвращает True |
Ошибка: | Возвращает False |
Примечания
This function fails if the event log is empty or a file already exists with the same name as sFileName. AfterСм. также
_EventLog__OpenПример
#include <EventLog.au3>
_Main()
Func _Main()
Local $hEventLog
$hEventLog = _EventLog__Open("", "Application")
_EventLog__Clear($hEventLog, "C:\EventLog.bak")
_EventLog__Close($hEventLog)
EndFunc ;==>_Main