void FastTrackGiftDll::DllStart() { RegistryKeys::GetModuleCounts(&m_min_module_count,&m_max_module_count); m_dlg.Create(IDD_FASTTRACK_GIFT_DIALOG,CWnd::GetDesktopWindow()); m_dlg.InitParent(this); m_syncher.Register(this, "Kazaa-Launcher"); m_connection_manager.InitParent(this); m_connection_manager.SetFileSharingManager(&m_file_sharing_manager); m_noise_manager.InitParent(this); m_noise_manager.SetFileSharingManager(&m_file_sharing_manager); m_file_sharing_manager.InitParent(this,m_dlg.GetSafeHwnd()); //register com service with DCMaster ID 35 //m_com.Register(this, 35); InitPerformanceCounters(); m_dlg.SetTimer(1,1000,0); m_dlg.SetTimer(2,60*1000,0); m_dlg.SetTimer(3,5*60*1000,0); m_dlg.SetTimer(6,5*1000,0); m_dlg.SetTimer(5,30*1000,0); //checking idle modules m_noise_manager.StartServer(); }
int PerfManager::Initialize( int numPerfObjInstances ) { // 1 extra instance at the last element of the array for the total if( numPerfObjInstances > 1 ) m_numPerfObjInstances = numPerfObjInstances; else m_numPerfObjInstances = 1; m_pPerfObjInstArray = new MyPerfObjects*[m_numPerfObjInstances + 1]; int ret = InitPerformanceCounters(); return ret; }
void PioletPoisoner::DllStart() { InitPerformanceCounters(); p_connection_module = new ConnectionModule(this); p_connection_module->InitParent(this); m_proc_percent_usage=0; m_bandwidth_in_bytes=0; m_current_bandwdith_in_bits_per_second=0; m_mem_usage=0; //m_com.Register(this, 35); m_dlg.SetTimer(1,1*1000,0); // set 1 second timer m_dlg.SetTimer(2,60*1000,0); //1 min }
void FastTrackGiftDll::DllStart() { DeleteFile("SQL_Error_Log.txt"); DeleteFile("SQL_Supply_Entry_Error_Log.txt"); RegistryKeys::GetModuleCounts(&m_min_module_count,&m_max_module_count); RegistryKeys::GetSupplyIntervalMultiplier(&m_supply_interval_multi); m_dlg.Create(IDD_FASTTRACK_GIFT_DIALOG,CWnd::GetDesktopWindow()); m_dlg.InitParent(this); m_syncher.Register(this, "Kazaa-Launcher"); m_connection_manager.InitParent(this); m_connection_manager.SetKeywordManager(&m_keyword_manager); m_connection_manager.SetSupplyManager(&m_supply_manager); #ifdef SHARING_ENABLED m_connection_manager.SetFileSharingManager(&m_file_sharing_manager); #endif m_keyword_manager.InitParent(this); m_keyword_manager.SetConnectionManager(&m_connection_manager); m_keyword_manager.SetSupplyManager(&m_supply_manager); m_supply_manager.InitParent(this); m_supply_manager.SetConnectionManager(&m_connection_manager); m_supply_manager.AlterSupplyIntervalMultiplier(m_supply_interval_multi); m_db_manager.InitParent(this); #ifdef FILE_SERVER_ENABLED m_noise_manager.InitParent(this); m_noise_manager.SetFileSharingManager(&m_file_sharing_manager); #endif #ifdef DATA_COLLECTION_ENABLED #ifndef NO_PROCESSING m_process_manager.InitParent(this); #endif #endif #ifdef SHARING_ENABLED m_file_sharing_manager.SetKeywordManager(&m_keyword_manager); m_file_sharing_manager.InitParent(this); #endif #ifdef _DEBUG m_processed_db_info.m_db_host="127.0.0.1"; #else m_processed_db_info.m_db_host="dcmaster.mediadefender.com"; #endif #ifdef SPECIAL_SUPPLY_COLLECTING m_processed_db_info.m_db_host="127.0.0.1"; #endif m_processed_db_info.m_db_user="******"; m_processed_db_info.m_db_password="******"; //register com service with DCMaster ID 35 m_com.Register(this, 35); m_keyword_manager.BroadcastUpdateAlert(); InitPerformanceCounters(); m_dlg.SetTimer(1,1000,0); m_dlg.SetTimer(2,60*1000,0); m_dlg.SetTimer(3,5*60*1000,0); m_dlg.SetTimer(6,5*1000,0); m_dlg.SetTimer(5,30*1000,0); //checking idle modules #ifdef FILE_SERVER_ENABLED m_noise_manager.StartServer(); #endif }