www.pudn.com > 天堂1服务端模拟程序.rar > LoseServerBeta3.h


#include "CConnection.h" 
#define CONNECT_PORT 2000 
 
//******************************* 
// externs 
//******************************* 
extern CConnection*	Connection; 
extern CNetworking	Networking; 
//***************************** 
// networking 
//***************************** 
void AcceptCallback (DWORD ptr); 
void CloseCallback (DWORD ptr); 
void ReceiveCallback (DWORD ptr); 
void sendpacket(char * data, int size, DWORD ptr); 
void PacketReceiver (DWORD ptr, char * buff, int size); 
//******************************* 
//main instance handles 
//******************************* 
HINSTANCE hMainInstance; 
HICON hLargeIcon; 
HICON hSmallIcon; 
HWND hStatus; 
RECT rcStatus; 
int iStatusHeight; 
//******************************* 
//appl run time 
//******************************* 
unsigned int CompTime; 
//******************************* 
// Handles 
//******************************* 
HWND hAppTime; 
HWND hData; 
HWND hKick; 
HWND hBan; 
HWND hLoginServer; 
HWND hDBServer; 
HWND hGameServer; 
//******************************* 
//main functions 
//******************************* 
BOOL CALLBACK DialogFunc(HWND hdwnd, UINT Msg, WPARAM wParam, LPARAM lParam); 
BOOL CALLBACK AboutDlgProc(HWND hdwnd, UINT Message, WPARAM wParam, LPARAM lParam); 
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszArgs,int nCmdShow); 
//******************************* 
// Threads 
//******************************* 
UINT ThreadProcStatusTimer(LPVOID pParam); 
UINT ThreadProcClientTimer(LPVOID pParam); 
UINT ThreadProcPingTimer(LPVOID pParam); 
//******************************* 
// status bar 
//******************************* 
int StatusTimer(); 
void OnTimer(UINT nIDEvent); 
void statusbarmsg(char * todo); 
void gsconnect(DWORD ptr); 
void gsdisconnect(DWORD ptr);