//
//   FUNCTION: CServiceBase::~CServiceBase()
//
//   PURPOSE: The virtual destructor of CServiceBase. 
//
CServiceBase::~CServiceBase(void)
{
    if (m_etwRegHandle != NULL)
    {
        EventUnregister(m_etwRegHandle);
    }
}
Exemplo n.º 2
0
 ~ETWHandler()
 {
     if (m_EventHandle)
     {
         EventUnregister(m_EventHandle);
     }
 }
Exemplo n.º 3
0
 logger::~logger()
 {
     if (g_event_provider_handle != NULL)
     {
         EventUnregister(g_event_provider_handle);
     }
 }
Exemplo n.º 4
0
/*++

Routine Description:

    Destroys logging.

Arguments:

    VOID

Return Value:

    VOID

--*/
VOID
DestroyEvents()
{
    if (m_etwRegHandle != NULL)
    {
        EventUnregister(m_etwRegHandle);
    }
}
Exemplo n.º 5
0
ETWLogger::~ETWLogger() {
	EventUnregister(m_registration_handle);
}
basic_simple_nt6_event_log_backend< CharT >::~basic_simple_nt6_event_log_backend()
{
    EventUnregister(m_pImpl->m_ProviderHandle);
}
Exemplo n.º 7
0
void WindowsEventLoggerPlugin::releaseHandle(REGHANDLE& registration_handle) {
  if (registration_handle != 0) {
    EventUnregister(registration_handle);
    registration_handle = 0;
  }
}