www.pudn.com > dos-SDK.rar > CLIENT.H
/* Message box and dialog box identifers */ #define IDM_CLSTART 110 #define IDM_ABOUT 111 #define IDPOK 1 #define IDCANCEL 2 /* hard coded port to listen at */ #define SRVPORT 1041 /* Connections states */ #define NOT_STARTED 0 #define XFER_ACTIVE 2 /* total number of sends */ #define NUM_SENDS 10 /* data buffer size */ #define BUFFER_SIZE 1024 /* time value for SetTimer call in milliseconds */ #define TIMER_INTERVAL 5000 /* maximum number of lines of output */ #define MAXLINES 20 /* packet types */ #define DATA 2 #define CLOSE 3 int PASCAL WinMain(HANDLE, HANDLE, LPSTR, int); long FAR PASCAL MainWndProc(HWND, unsigned, WORD, LONG); BOOL InitApplication(HANDLE); BOOL InitInstance(HANDLE, int); BOOL FAR PASCAL AboutProc(HWND, unsigned, WORD, LONG); VOID PASCAL cl_setup(HWND); VOID PASCAL data_xfer(HWND); VOID PASCAL cleanup(HWND); VOID PASCAL inc_nI();