home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / PARALLEL / PARALLEL.H < prev    next >
Text File  |  1995-04-14  |  4KB  |  134 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  4. /*                                                                           */
  5. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  6. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  7. /*    drivers. You may use this code in accordance with the IBM License      */
  8. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  9. /*    Copyright statement may not be removed.                                */
  10. /*                                                                           */
  11. /*****************************************************************************/
  12. /**************************************************************************
  13.  *
  14.  * SOURCE FILE NAME = PARALLEL.H
  15.  *
  16.  * DESCRIPTIVE NAME =
  17.  *
  18.  *
  19.  * VERSION = V2.0
  20.  *
  21.  * DATE
  22.  *
  23.  * DESCRIPTION
  24.  *
  25.  *
  26.  * FUNCTIONS
  27.  *
  28.  * ENTRY POINTS:
  29.  *
  30.  * DEPENDENCIES:
  31.  *
  32.  * NOTES
  33.  *
  34.  *
  35.  * STRUCTURES
  36.  *
  37.  * EXTERNAL REFERENCES
  38.  *
  39.  * EXTERNAL FUNCTIONS
  40.  *
  41. */
  42.  
  43. #define PRT_HELPFILE_NAME       "WPHELP.HLP"
  44. #define PARALLEL_DLL            "PARALLEL"
  45.  
  46. #define NO_ERROR                     0
  47. #define ERROR_MORE_DATA              234
  48. #define ERROR_INSUFFICIENT_BUFFER    122
  49.  
  50. #define ID_NUMBER_OF_DESC_LINES 8000
  51. #define ID_FIRST_DESC_LINES     8001
  52.  
  53. #define PORT_ID_1               5001
  54. #define PORT_DESC_1             5002
  55. #define PORT_ID_2               5003
  56. #define PORT_DESC_2             5004
  57. #define PORT_ID_3               5005
  58. #define PORT_DESC_3             5006
  59. #define PORT_HELP_TITLE         5100
  60. #define PORT_ERR_TITLE          7000
  61.  
  62. #define PORT_ID_FIRST           PORT_ID_1
  63. #define PORT_ID_LAST            PORT_ID_3
  64.  
  65. #define PARALLEL_ICON           7001
  66.  
  67. #define STR_LEN_PORTNAME        64
  68. #define STR_LEN_PORTDESC        256
  69. #define STR_LEN_DESC            81
  70. #define STR_LEN_TITLE           256
  71.  
  72.    /*
  73.    ** port defaults
  74.    */
  75. #define DEF_INITIALIZATION      ";"
  76. #define DEF_OLD_INITIALIZATION  ";"
  77. #define DEF_TERMINATION         ";"
  78. #define DEF_TIMEOUT             "45;"
  79. #define DEF_PORTDRIVER          "PARALLEL;"
  80.  
  81. #define TIMEOUT_LOWER_LIMIT      0
  82. #define TIMEOUT_UPPER_LIMIT      9999
  83. #define DEF_TIMEOUT_VALUE        45
  84.  
  85. #define APPNAME_LEAD_STR           "PM_"
  86.  
  87. #define KEY_DESCRIPTION            "DESCRIPTION"
  88. #define KEY_INITIALIZATION         "INITIALIZATION"
  89. #define KEY_TERMINATION            "TERMINATION"
  90. #define KEY_PORTDRIVER             "PORTDRIVER"
  91. #define KEY_TIMEOUT                "TIMEOUT"
  92.  
  93. #define APPNAME_PM_SPOOLER_PORT    "PM_SPOOLER_PORT"
  94.  
  95. #define NumPorts() (((PORT_ID_LAST - PORT_ID_FIRST) >> 1) + 1)
  96.  
  97.  
  98. typedef struct _PARALLELDATA
  99. {
  100.    HAB hAB;
  101.    HMODULE hModule;
  102.    ULONG lfModified;
  103.    PSZ pszPortName;
  104.    PSZ pszAppName;
  105.    USHORT usSaveTimeOut;
  106.    USHORT usOrgTimeOut;
  107.    BOOL   fOrgShareAccess ;
  108.    BOOL   fShareAccess ;
  109. } PARALLDATA, *PPARALLDATA;
  110.  
  111.    /*
  112.    ** Port Settings - Parallel Port
  113.    */
  114. #define IDD_PORTPARALLEL      21400
  115. #define IDC_PPA_TIMEOUT       (IDD_PORTPARALLEL + 1)  /* Timeout            */
  116. #define IDC_PPA_DESC          (IDD_PORTPARALLEL + 2)
  117. #define IDC_PPA_SHAREHW       (IDD_PORTPARALLEL + 3)  /* share access       */
  118. #define IDC_OK           1100                         /* OK push button     */
  119. #define IDC_CANCEL       1101                         /* Cancel push button */
  120. #define IDC_HELP         1102                         /* Help push button   */
  121. #define IDC_RESET        1103                         /* Help push button   */
  122. #define IDC_DEFAULT      1104                         /* Help push button   */
  123.  
  124. #define IDH_DLG_EXTENDED 15483
  125. #define IDH_PPA_TIMEOUT  15484
  126. #define IDH_PPA_SHAREHW  15822
  127. #define IDH_PPA_DESC     15715
  128. #define IDH_OK           1090
  129. #define IDH_CANCEL       1091
  130. #define IDH_RESET        1092
  131. #define IDH_DEFAULT      1093
  132. #define IDH_HELP         15483
  133.  
  134.