home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / OS2 / NPIPE / SVRPMAIN.H < prev    next >
Text File  |  1994-11-17  |  4KB  |  98 lines

  1. /*==============================================================*\
  2.  *
  3.  *  Main.h - Sample Pipe application main header file
  4.  *      Copyright 1990 IBM Corp.
  5.  *
  6.  *--------------------------------------------------------------
  7.  *
  8.  *  This header file contains the application wide constants
  9.  *  and structure definitions.
  10.  *
  11. \*==============================================================*/
  12.  
  13. #define IDR_MAIN       1      /* resource identifier */
  14.  
  15. /*--------------------------------------------------------------*\
  16.  *  Standard Dialog box ids
  17. \*--------------------------------------------------------------*/
  18.  
  19. #define MSGBOXID        1001
  20. #define IDD_ABOUTBOX    1002
  21.  
  22.  
  23. /*--------------------------------------------------------------*\
  24.  *  Menu item ids
  25. \*--------------------------------------------------------------*/
  26. #define IDM_FILE                            1000
  27. #define IDM_FILEEXIT                        1800
  28.  
  29. #define IDM_HELP                            9000
  30. #define IDM_HELPHELPFORHELP                 9100
  31. #define IDM_HELPEXTENDED                    9200
  32. #define IDM_HELPKEYS                        9300
  33. #define IDM_HELPINDEX                       9400
  34. #define IDM_HELPTUTORIAL                    9500
  35. #define IDM_HELPABOUT                       9600
  36.  
  37. #define IDM_OPTION                          3000
  38. #define IDM_OPTIONCLEAR                     3100
  39.  
  40.  
  41. /*--------------------------------------------------------------*\
  42.  *  Dialog item ids
  43. \*--------------------------------------------------------------*/
  44. #define ID_OK               1
  45. #define ID_CANCEL           2
  46.  
  47. #define IDC_OK              1
  48. #define IDC_ICON            4
  49.  
  50. /*--------------------------------------------------------------*\
  51.  *  Stringtable ids
  52. \*--------------------------------------------------------------*/
  53. #define IDS_APPNAME                 1
  54. #define IDS_HELPLIBRARYNAME         2
  55. #define IDS_HELPWINDOWTITLE         3
  56. #define IDS_TITLEBARSEPARATOR       4
  57.  
  58. /*--------------------------------------------------------------*\
  59.  *  Messagetable ids
  60. \*--------------------------------------------------------------*/
  61. #define IDMSG_INITFAILED                1
  62. #define IDMSG_MAINWINCREATEFAILED       2
  63. #define IDMSG_HELPLOADERROR             3
  64. #define IDMSG_CANNOTLOADSTRING          4
  65. #define IDMSG_HELPDISPLAYERROR          5
  66. #define IDMSG_CREATE_PIPE_FAILED        7
  67. #define IDMSG_CREATE_SEM_FAILED         8
  68. #define IDMSG_CREATE_THREAD_FAILED      9
  69. #define IDMSG_PIPE_WRITE_FAILED        10
  70. #define IDMSG_PIPE_READ_FAILED         11
  71. #define IDMSG_SEMAPHORE_ERROR          12
  72. #define IDMSG_START_PIPE_ERROR         13
  73. #define IDMSG_CONNECT_FAILED           14
  74. #define IDMSG_GAME_EXITTING            15
  75. #define IDMSG_GAME_PIPE_CONNECTED      16
  76. #define IDMSG_CANNOT_EXEC_CLIENT       17
  77.  
  78. /*--------------------------------------------------------------*\
  79.  *  Ids of messages used between threads (non-pipe related)
  80. \*--------------------------------------------------------------*/
  81.  
  82. #define WM_MSG                  WM_USER+0  /* popup message */
  83. #define WM_PIPEMSG              WM_USER+1  /* client window message */
  84.  
  85. /*--------------------------------------------------------------*\
  86.  *  Other constants
  87. \*--------------------------------------------------------------*/
  88. #define TITLE_LEN           50
  89. #define TITLESEPARATORLEN    4
  90. #define MAX_MESSAGES       255
  91. #define MESSAGE_LEN         64
  92.  
  93. /* return values for initialization routines */
  94. #define RETURN_SUCCESS      0   /* successful return in DosExit */
  95. #define RETURN_ERROR        1   /* error return in DosExit */
  96. #define BEEP_WARN_FREQ      60  /* frequency of warning beep */
  97. #define BEEP_WARN_DUR      100  /* duration of warning beep */
  98.