CloseEventLog

  BOOL CloseEventLog(hEventLog)    
  HANDLE hEventLog; /* event-log handle (returned by OpenEventLog) */

The CloseEventLog function closes the handle to an event log.

Parameters

hEventLog

Specifies the event-log handle. This handle is returned by the OpenEventLog function.

Return Value

If the function is successful, the return value is TRUE. The event log handle has been closed.

If the function fails, the return value is FALSE. Use the GetLastError function to obtain extended error information.

See Also

OpenEventLog