Platform SDK: Exchange Server |
The HrEventUseExisting function initializes event logging for a Microsoft Exchange Server application by connecting to an already open event log handle.
Header file: | EDKEVENT H |
Library: | EDKEVENT.LIB |
HRESULT HrEventUseExisting( HANDLE hExistingEventSource );
See Return Values.
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.