home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / os2hdr.exe / NWPS_DEF.H < prev    next >
C/C++ Source or Header  |  1993-04-07  |  3KB  |  102 lines

  1. /*--------------------------------------------------------------------------
  2.       (C) Copyright 1993, Novell, Inc.    All Rights Reserved.
  3.  
  4.  No part of this file may be duplicated, revised, translated, localized or
  5.  modified in any manner or compiled, linked, or uploaded or downloaded to or
  6.  from any computer system without the prior written consent of Novell, Inc.
  7. --------------------------------------------------------------------------*/
  8. #ifndef NWPS_DEF_INC
  9. #define NWPS_DEF_INC
  10.  
  11. /* My definitions in case someone forgot theirs */
  12. #ifndef DWORD
  13. #define DWORD                unsigned long
  14. #endif
  15.  
  16. #ifndef WORD
  17. #define WORD                unsigned short
  18. #endif
  19.  
  20. #ifndef BYTE
  21. #define BYTE                unsigned char
  22. #endif
  23.  
  24. #ifndef NWCCODE
  25. #define NWCCODE            WORD
  26. #endif
  27.  
  28. #ifdef MAX_DN_BYTES
  29. #define NWPS_MAX_NAME_SIZE             MAX_DN_BYTES
  30. #else
  31. #define NWPS_MAX_NAME_SIZE             514
  32. #endif
  33.  
  34. #ifdef OBJECT_NAME_SIZE
  35. #define NWPS_BIND_NAME_SIZE                OBJECT_NAME_SIZE
  36. #else
  37. #define NWPS_BIND_NAME_SIZE                48
  38. #endif
  39.  
  40. #ifndef NWFAR
  41. #ifdef NLM
  42. #define NWFAR
  43. #define NWPASCAL
  44. #else
  45. #define NWFAR                far
  46. #define NWPASCAL            pascal
  47. #endif /* NLM */
  48. #endif /* NWFAR */
  49.  
  50. #ifndef NWAPI
  51. #define NWAPI NWFAR NWPASCAL
  52. #endif
  53.  
  54. #ifndef NWPTR
  55. #define NWPTR NWFAR *
  56. #endif
  57.  
  58. /*=====================================
  59.     ConnectionType values used troughout
  60.   =====================================*/
  61. #define NWPS_BINDERY_SERVICE                0        /* ID is a connection id        */
  62. #define NWPS_DIRECTORY_SERVICE            1        /* ID is a context id            */
  63.  
  64. /*====================
  65.      Maximum name sizes
  66.   ====================*/
  67. /*===================== PrintCon name sizes ===============================*/
  68. #define NWPS_JOB_NAME_SIZE             32    /* 31 bytes and a '\0'            */ 
  69. #define NWPS_BANNER_NAME_SIZE          12    /* 12 bytes and a '\0'            */ 
  70. #define NWPS_BANNER_FILE_SIZE          12    /* 12 bytes and a '\0'            */ 
  71. #define NWPS_HEADER_FILE_SIZE          12    /* 12 bytes and a '\0'            */ 
  72.  
  73. /*===================== PrintDef name sizes ===============================*/
  74. #define NWPS_FORM_NAME_SIZE                12    /* 12 bytes and a '\0'            */ 
  75. #define NWPS_DEVI_NAME_SIZE                32    /* 32 bytes and a '\0'            */ 
  76. #define NWPS_MODE_NAME_SIZE                32    /* 32 bytes and a '\0'            */ 
  77. #define NWPS_FUNC_NAME_SIZE                32    /* 32 bytes and a '\0'            */ 
  78.  
  79. /*================== Print Server Configuration Sizes =====================*/
  80. #define NWPS_DESCRIPT_SIZE             128    /* matches Bind. prop. value    */
  81. #define NWPS_APPLE_NAME_SIZE                32    /* 32 bytes and a '\0'            */ 
  82. #define NWPS_APPLE_TYPE_SIZE                32    /* 32 bytes and a '\0'            */ 
  83. #define NWPS_APPLE_ZONE_SIZE                32    /* 32 bytes and a '\0'            */ 
  84. #define NWPS_UNIX_HOST_SIZE                255    /* 255 bytes and a '\0'       */ 
  85. #define NWPS_UNIX_PRNT_SIZE                255    /* 255 bytes and a '\0'       */ 
  86. #define NWPS_OTHER_SIZE                1024    /* bytes for NWPS_P_OTHER        */
  87.  
  88. /*===========================
  89.      Maximum number of objects
  90.   ===========================*/
  91. /*================================================
  92.     If -1 is used for a Printer or Form number,
  93.     the first available number will be substituted.
  94.   ================================================*/
  95. #define NWPS_MAX_PRINTERS                    255    /* numbered 0 - 254                */
  96. #define NWPS_MAX_FORMS                        255    /* numbered 0 - 254                */
  97.  
  98. /*==== GetFirst, GetNext, and EndNext require the following handle =========*/
  99. typedef void NWPTR NWPSListHandle;
  100.  
  101. #endif /* NWPS_DEF_INC */
  102.