Esempio n. 1
0
File: main.c Progetto: Zhenya-/d2gs
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow)
#endif
{
	DWORD	dwWait;
	int geid;
#ifdef _DEBUG
	if (argc != 2) return;
	geid = atoi(argv[1]);
#else
	geid = atoi(lpCmdLine);
#endif
	/* init log system first */
	if (!D2GEEventLogInitialize(geid)) return -1;

	/* setup signal capture */
	SetConsoleCtrlHandler(ControlHandler, TRUE);
	
	/* init client */
	init_client();

	/* init hack prevent */
	hp_init();

	/* initialize the net connection */
	if (!D2GSNetInitialize(geid)) {
		D2GEEventLog("main", "Failed Startup Net Connector");
		return -1;
	}
	
	/*CreateThread(NULL, 0, DCStressTest, NULL, NULL, NULL);
	CreateThread(NULL, 0, DCStressTest, NULL, NULL, NULL);
	CreateThread(NULL, 0, DCStressTest, NULL, NULL, NULL);
	CreateThread(NULL, 0, DCStressTest, NULL, NULL, NULL);
	CreateThread(NULL, 0, DCStressTest, NULL, NULL, NULL);
	CreateThread(NULL, 0, DCStressTest, NULL, NULL, NULL);*/

	while(1) {
		Sleep(1000);
	}

	return 0;

} /* End of main() */
Esempio n. 2
0
static int hp2_a4_init(UDATA pagew,UDATA pageh) { init_str = a42_init_str; return(hp_init()); }
Esempio n. 3
0
static int hp_a3_init(UDATA pagew,UDATA pageh) { init_str = a3_init_str; return(hp_init()); }