DECLAREINTEGER RegisterEventSource IN advapi32;
[in] The Universal Naming Convention (UNC) name of the server on which this operation is to be performed. If this parameter is NULL, the operation is performed on the local computer.
[in] 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.
However, the Security log is for system use only.
If the function succeeds, the return value is a handle to the event log.
If the function fails, the return value is NULL.