home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / os232.exe / INCLUDE / NWCALDEF.H < prev    next >
C/C++ Source or Header  |  1995-06-27  |  4KB  |  157 lines

  1. /******************************************************************************
  2.  
  3.   $Workfile:   nwcaldef.h  $
  4.   $Revision:   1.27  $
  5.   $Modtime::   22 Jun 1995 13:16:28                        $
  6.   $Copyright:
  7.  
  8.   Copyright (c) 1989-1995 Novell, Inc.  All Rights Reserved.                      
  9.  
  10.   THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  11.   TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  12.   COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  13.   EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  14.   WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  15.   OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  16.   CRIMINAL AND CIVIL LIABILITY.$
  17.  
  18.  *****************************************************************************/
  19.  
  20. #if ! defined ( NWCALDEF_H )
  21. #define NWCALDEF_H
  22.  
  23. #if ! defined ( NTYPES_H )
  24. #include "ntypes.h"
  25. #endif
  26.  
  27. #ifndef NWPASCAL
  28. #define NWPASCAL N_PASCAL
  29. #endif
  30.  
  31. #ifndef NWFAR
  32. #define NWFAR N_FAR
  33. #endif
  34.  
  35. #define NWCONN_HANDLE     nuint
  36. #define NWCONN_NUM        nuint16
  37. #define NWCCODE           nuint
  38. #define NWDIR_HANDLE      nuint8
  39.  
  40. #if defined (N_PLAT_MSW) && defined (N_ARCH_32)
  41. #define NWFILE_HANDLE     nptr
  42. #else
  43. #define NWFILE_HANDLE     nuint
  44. #endif
  45.  
  46.  
  47. #if !defined(__WINDOWS_H) &&         \
  48.     !defined(_INC_WINDOWS) &&        \
  49.     !defined(__WIN386_INCLUDED__)
  50.  
  51. #if !defined(BYTE) && !defined(OS2DEF_INCLUDED)
  52. #define BYTE nuint8
  53. #endif
  54.  
  55. #ifndef WORD
  56. #define WORD nuint16
  57. #endif
  58.  
  59. #ifndef DWORD
  60. #define DWORD nuint32
  61. #endif
  62.  
  63. #ifndef LONG
  64. #define LONG nuint32
  65. #endif
  66.  
  67. #endif
  68.  
  69. #ifndef FA_READ_ONLY
  70. #define FA_NORMAL         0x00
  71. #define FA_READ_ONLY      0x01
  72. #define FA_HIDDEN         0x02
  73. #define FA_SYSTEM         0x04
  74. #define FA_EXECUTE_ONLY   0x08
  75. #define FA_DIRECTORY      0x10
  76. #define FA_NEEDS_ARCHIVED 0x20
  77. #define FA_SHAREABLE      0x80
  78.  
  79. /* Extended file attributes */
  80. #define FA_TRANSACTIONAL  0x10
  81. #define FA_INDEXED        0x20
  82. #define FA_READ_AUDIT     0x40
  83. #define FA_WRITE_AUDIT    0x80
  84. #endif
  85.  
  86. /* the following is a the correct attribute mask list */
  87. /* The difference between these and the FA_ constants above is that these
  88.    are in the correct positions. The last four attributes above are 8 bits
  89.    off. (They need to be shifted 8 bits to the left.) */
  90. #ifndef A_NORMAL
  91. #define A_NORMAL             0x00000000L
  92. #define A_READ_ONLY          0x00000001L
  93. #define A_HIDDEN             0x00000002L
  94. #define A_SYSTEM             0x00000004L
  95. #define A_EXECUTE_ONLY       0x00000008L
  96. #define A_DIRECTORY          0x00000010L
  97. #define A_NEEDS_ARCHIVED     0x00000020L
  98. #define A_SHAREABLE          0x00000080L
  99. #define A_DONT_SUBALLOCATE   0x00000800L 
  100. #define A_TRANSACTIONAL      0x00001000L
  101. #define A_INDEXED            0x00002000L /* not in the NCP book */
  102. #define A_READ_AUDIT         0x00004000L
  103. #define A_WRITE_AUDIT        0x00008000L
  104. #define A_IMMEDIATE_PURGE    0x00010000L
  105. #define A_RENAME_INHIBIT     0x00020000L
  106. #define A_DELETE_INHIBIT     0x00040000L
  107. #define A_COPY_INHIBIT       0x00080000L
  108. #define A_FILE_MIGRATED      0x00400000L
  109. #define A_DONT_MIGRATE       0x00800000L
  110. #define A_IMMEDIATE_COMPRESS 0x02000000L
  111. #define A_FILE_COMPRESSED    0x04000000L
  112. #define A_DONT_COMPRESS      0x08000000L
  113. #define A_CANT_COMPRESS      0x20000000L
  114. #endif
  115.  
  116. /* access rights attributes */
  117. #ifndef AR_READ_ONLY
  118. #define AR_READ           0x0001
  119. #define AR_WRITE          0x0002
  120. #define AR_READ_ONLY      0x0001
  121. #define AR_WRITE_ONLY     0x0002
  122. #define AR_DENY_READ      0x0004
  123. #define AR_DENY_WRITE     0x0008
  124. #define AR_COMPATIBILITY  0x0010
  125. #define AR_WRITE_THROUGH  0x0040
  126. #define AR_OPEN_COMPRESSED 0x0100
  127. #endif
  128.  
  129. /* search attributes */
  130. #ifndef SA_HIDDEN
  131. #define SA_NORMAL         0x0000
  132. #define SA_HIDDEN         0x0002
  133. #define SA_SYSTEM         0x0004
  134. #define SA_SUBDIR_ONLY    0x0010
  135. #define SA_SUBDIR_FILES   0x8000
  136. #define SA_ALL            0x8006
  137. #endif
  138.  
  139. #define MAX_VOL_LEN 17        /* this includes a byte for null  */
  140.  
  141.  
  142. #ifndef USE_NW_WILD_MATCH
  143. #define USE_NW_WILD_MATCH   0
  144. #endif
  145.  
  146. #ifndef USE_DOS_WILD_MATCH
  147. #define USE_DOS_WILD_MATCH  1
  148. #endif
  149.  
  150. /* Scope specifiers */
  151. #define GLOBAL       0
  152. #define PRIVATE      1
  153. #define MY_SESSION   2
  154. #define ALL_SESSIONS 3
  155.  
  156. #endif
  157.