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

Routine Description:

    Destroys logging.

Arguments:

    VOID

Return Value:

    VOID

--*/
VOID
DestroyEvents()
{
    if (m_etwRegHandle != NULL)
    {
        EventUnregister(m_etwRegHandle);
    }
}
示例#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);
}
示例#7
0
void WindowsEventLoggerPlugin::releaseHandle(REGHANDLE& registration_handle) {
  if (registration_handle != 0) {
    EventUnregister(registration_handle);
    registration_handle = 0;
  }
}