home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / winsock / wsock / wsock.h < prev    next >
Text File  |  1997-10-05  |  2KB  |  55 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples. 
  4. *       Copyright (C) 1993-1997 Microsoft Corporation.
  5. *       All rights reserved. 
  6. *       This source code is only intended as a supplement to 
  7. *       Microsoft Development Tools and/or WinHelp documentation.
  8. *       See these sources for detailed information regarding the 
  9. *       Microsoft samples programs.
  10. \******************************************************************************/
  11.  
  12. #define WSA_ACCEPT   (WM_USER + 0)
  13. #define WSA_READ     (WM_USER + 1)
  14.  
  15. #define IDM_ABOUT           100
  16. #define IDM_HOSTNAME        102
  17. #define IDM_LISTEN          103
  18. #define IDM_CONNECT         104
  19. #define IDM_ALISTEN         105
  20. #define IDM_CANCEL          106
  21. #define IDM_TLISTEN         107
  22. #define IDM_SENDTCP         108
  23. #define IDM_CONNECTANDSEND  109
  24. #define IDM_ACCEPTEX        110
  25.  
  26. /*
  27. *   Structure passed into the accept thread
  28. */
  29. typedef struct {
  30.    int    nThread;  // Thread number.
  31.    HWND  hWnd;
  32.    } THREADPACK, *PTHREADPACK;
  33.  
  34.  
  35.  
  36. BOOL InitApplication(HANDLE);
  37. BOOL InitInstance(HANDLE, int);
  38. void SetConnectMenus( HWND );
  39. LONG APIENTRY MainWndProc(HWND, UINT, UINT, LONG);
  40. LRESULT APIENTRY About(HWND, UINT, UINT, LONG);
  41. LRESULT APIENTRY GetHostName(HWND, UINT, UINT, LONG);
  42. LRESULT APIENTRY DisplayHostEnt(HWND, UINT, UINT, LONG);
  43. LRESULT APIENTRY GetTcpPort(HWND, UINT, UINT, LONG);
  44. LRESULT APIENTRY GetSendString(HWND, UINT, UINT, LONG);
  45.  
  46. /* GLOBAL VARIABLES ======================================*/
  47. PHOSTENT phe;
  48.  
  49. #define IDD_EDIT                    201
  50. #define IDD_TEXT                    202
  51. #define IDD_ALIAS                   203
  52. #define IDD_HOSTNAME                206
  53. #define IDD_LBALIAS                                             207
  54. #define IDD_LBADDR                                              208
  55.