↑  ←  Описание функции


_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
this function returns, any handles that reference the cleared event log cannot be used to read the log.

См. также

_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