_EventLog__RegisterSource
Retrieves a registered handle to the specified event log
#include <EventLog.au3>
_EventLog__RegisterSource($sServerName, $sSourceName)
Параметры
$sServerName | The UNC name of the server on where the event log will be opened. If blank, the operation is performed on the local computer. |
$sSourceName |
The name of the event source whose handle is to be retrieved. The source name must be a subkey of a log under the Eventlog registry key. |
Возвращаемое значение
Успех: | The handle to an event log |
Ошибка: | Возвращает 0 |
Примечания
If the source name cannot be found, the event logging service uses the Application log; it does not create aСм. также
_EventLog__DeregisterSource