Platform SDK: Exchange Server

HrEventUseExisting

The HrEventUseExisting function initializes event logging for a Microsoft Exchange Server application by connecting to an already open event log handle.

Quick Info

Header file: EDKEVENT H
Library: EDKEVENT.LIB

HRESULT HrEventUseExisting(
  HANDLE hExistingEventSource  
);
 

Parameters

hExistingEventSource
Input parameter. Specifies the handle of an open event log.

Return Values

See Return Values.

Remarks

Connecting to an already open event log handle allows EventLogMsg to log events to a handle that was opened elsewhere. Calling HrEventCloseLog after calling this routine will do an internal cleanup, but will not close the event log handle. An example of where this routine is useful is within a DLL that is called by code in which event logging has already been initialized.

See Also

HrEventOpenLog