home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / rpc / whello / whelloc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-14  |  1.5 KB  |  45 lines

  1. #ifdef WIN16
  2. #define APIENTRY         FAR PASCAL
  3. #define UNREFERENCED_PARAMETER
  4. #endif
  5.  
  6. #define IDM_ABOUT         100
  7. #define IDM_PROTSEQ       200
  8. #define IDM_SERVER        300
  9. #define IDM_EXIT          400
  10. #define IDM_ENDPOINT      500
  11. #define IDM_SEND          600
  12. #define IDM_BIND          700
  13.  
  14. #define IDD_PROTSEQNAME   201
  15. #define IDD_SERVERNAME    301
  16. #define IDD_ENDPOINTNAME  401
  17. #define IDD_MESSAGE       501
  18.  
  19. #define CNLEN              25    /* computer name length */
  20. #define UNCLEN        CNLEN+2    /* \\computername       */
  21. #define PATHLEN           260    /* Path                 */
  22. #define MSGLEN            300    /* arbitrary large number for message size */
  23. #define MAXPROTSEQ         20    /* protocol sequence "ncacn_np" */       
  24.  
  25. #define DEFAULT_ENDPOINT    "\\pipe\\whello"                    
  26. #define DEFAULT_PROT_SEQ    "ncacn_np"                         
  27. #define DEFAULT_MESSAGE     "hello, world"
  28.  
  29. #define EXCEPT_MSG "The remote procedure call failed. \
  30. Please make sure the server application is running and \
  31. that the server name and endpoint name are correct."
  32.  
  33.  
  34. int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int);
  35. BOOL InitApplication(HANDLE);
  36. BOOL InitInstance(HANDLE, int);
  37.  
  38. LONG APIENTRY MainWndProc(HWND, UINT, UINT, LONG);
  39. BOOL APIENTRY About(HWND, UINT, UINT, LONG);
  40. BOOL APIENTRY Protseq(HWND, UINT, UINT, LONG);
  41. BOOL APIENTRY Server(HWND, UINT, UINT, LONG);
  42. BOOL APIENTRY Endpoint(HWND, UINT, UINT, LONG);
  43. BOOL APIENTRY Send(HWND, UINT, UINT, LONG);
  44. RPC_STATUS Bind(HWND);
  45.