bool CEnumerator::StartEnumeration(HINSTANCE hInstance) { if(ResolveHidDllFunctions(hInstance)) { RunUpdater(0); m_hDevNotify = RegisterDeviceNotification(m_HidGuid); SetEvent(m_hEnumHidDevicesEvent); CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)CEnumerator::EnumeratorThreadStatic, (LPVOID)this, 0, &m_EnumerateHidDevicesThreadID); m_EnumerationStarted = 1; return true; } return false; }
void UpdateModule::PostInitialize() { if (!GetFramework()->IsHeadless()) RunUpdater("/silent"); }