..msdn Add comment W32 Constants Translate this page
Opens a handle to the specified event log.|
DECLARE INTEGER OpenEventLog IN advapi32;
[in] The Universal Naming Convention (UNC) name of the server on which the event log is to be opened.
[in] The name of the log.
If a custom log cannot be found, the event logging service opens the Application log; however, there will be no associated message or category string file.
|If the function succeeds, the return value is the handle to an event log.|
hLog = OpenEventLog(NULL, "Security") && local computer
IF hLog = 0
? "OpenEventLog call failed with error code:",;
|To close the handle to the event log, use the CloseEventLog function.|
With Event Viewer, users can monitor events recorded in the Application, Security, and System logs.
|Word Index links for the OpenEventLog :|
|Translate this page:|
Visited in last 7 days: 35
|Created: ||2007-02-10 12:14:44|
|Modified: ||2007-06-11 16:31:10|