// // FUNCTION: CServiceBase::~CServiceBase() // // PURPOSE: The virtual destructor of CServiceBase. // CServiceBase::~CServiceBase(void) { if (m_etwRegHandle != NULL) { EventUnregister(m_etwRegHandle); } }
~ETWHandler() { if (m_EventHandle) { EventUnregister(m_EventHandle); } }
logger::~logger() { if (g_event_provider_handle != NULL) { EventUnregister(g_event_provider_handle); } }
/*++ Routine Description: Destroys logging. Arguments: VOID Return Value: VOID --*/ VOID DestroyEvents() { if (m_etwRegHandle != NULL) { EventUnregister(m_etwRegHandle); } }
ETWLogger::~ETWLogger() { EventUnregister(m_registration_handle); }
basic_simple_nt6_event_log_backend< CharT >::~basic_simple_nt6_event_log_backend() { EventUnregister(m_pImpl->m_ProviderHandle); }
void WindowsEventLoggerPlugin::releaseHandle(REGHANDLE& registration_handle) { if (registration_handle != 0) { EventUnregister(registration_handle); registration_handle = 0; } }