home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / ipc / namepipe / npclient / client32.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-05  |  1.6 KB  |  49 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. // Various buffer sizes
  13. #define IN_BUF_SIZE        1000
  14. #define OUT_BUF_SIZE       1000
  15. #define PLEASE_READ        1000
  16. #define PLEASE_WRITE       1000
  17. #define LINE_LEN           80
  18. #define NAME_SIZE          25
  19.  
  20. // For the Client dialog box.
  21. #define IDB_SEND           904
  22. #define IDD_EDITWRITE      905
  23. #define IDD_EDITREAD       906
  24.  
  25. // For the Init dialog box.
  26. #define IDD_SVREDIT        701
  27. #define IDB_INITOK         705
  28. #define IDD_CLNTEDIT       704
  29.  
  30.  
  31. #define WM_APP             0x8000
  32. #define WM_INITCLIENT      WM_APP
  33. #define WM_GO_AWAY         WM_APP+1
  34.  
  35. // Stringtable identifiers
  36. #define IDS_CANTFINDPIPE    100
  37. #define IDS_GENERALERROR    101
  38. #define IDS_DEBUGTITLE      102
  39. #define IDS_CONNECTBROKEN   103
  40. #define IDS_READFAILED      104
  41. #define IDS_CLIENTDBG       105
  42.  
  43.  
  44.  
  45. LONG CALLBACK MainWndProc   (HWND, UINT, WPARAM, LPARAM);
  46. LONG CALLBACK ClientDlgProc (HWND, UINT, WPARAM, LPARAM);
  47. LONG CALLBACK InitDlgProc   (HWND, UINT, WPARAM, LPARAM);
  48. VOID          ReadPipe      (HANDLE *);
  49.