Ermittelt, ob das Event Log voll ist
#include <EventLog.au3>
_EventLog__Full ( $hEventLog )
| $hEventLog | Handle des Event Log |
| True: | Event Log ist voll |
| False: | Event Log ist nicht voll |
_EventLog__Count, _EventLog__Oldest
#include "Extras\HelpFileInternals.au3"
#include <EventLog.au3>
#include <FontConstants.au3>
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local $hEventLog
; Erstellt das GUI
GUICreate("EventLog", 600, 300)
_MemoCreate(2, 2, 596, 294, 0)
GUISetState(@SW_SHOW)
$hEventLog = _EventLog__Open("", "Application")
_MemoWrite("EventLog voll? ..........: " & _EventLog__Full($hEventLog))
_MemoWrite("Anzahl der Log-Einträge .: " & _EventLog__Count($hEventLog))
_MemoWrite("Ältester Log-Eintrag: ...: " & _EventLog__Oldest($hEventLog))
_EventLog__Close($hEventLog)
; Die Schleife wiederholt sich, bis der Benutzer das Fenster schließt
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc ;==>Example