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

  1. /******************************************************************************
  2.  
  3.   $Workfile:   nwea.h  $
  4.   $Revision:   1.8  $
  5.   $Modtime::   08 May 1995 17:26:14                        $
  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 ( NWEA_H )
  21. #define NWEA_H
  22.  
  23. #if ! defined ( NTYPES_H )
  24. #include "ntypes.h"
  25. #endif
  26.  
  27. #if ! defined ( NWCALDEF_H )
  28. #include "nwcaldef.h"
  29. #endif
  30.  
  31. #if ! defined ( NWNAMSPC_H ) /* Needed top defined NW_IDX */
  32. #include "nwnamspc.h"
  33. #endif
  34.  
  35. #include "npackon.h"
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40.  
  41. #define EA_EOF                  1
  42. #define EA_DONE                 1
  43.  
  44. #define EA_READWRITE            0
  45. #define EA_CREATE               1
  46.  
  47. #define MISSING_EA_KEY             200  /* 0xC8 */
  48. #define EA_NOT_FOUND               201  /* 0xC9 */
  49. #define INVALID_EA_HANDLE_TYPE     202  /* 0xCA */
  50. #define EA_NO_KEY_NO_DATA          203  /* 0xCB */
  51. #define EA_NUMBER_MISMATCH         204  /* 0xCC */
  52. #define EXTENT_NUMBER_OUT_OF_RANGE 205  /* 0xCD */
  53. #define EA_BAD_DIR_NUM             206  /* 0xCE */
  54. #define INVALID_EA_HANDLE          207  /* 0xCF */
  55. #define EA_POSITION_OUT_OF_RANGE   208  /* 0xD0 */
  56. #define EA_ACCESS_DENIED           209  /* 0xD1 */
  57. #define DATA_PAGE_ODD_SIZE         210  /* 0xD2 */
  58. #define EA_VOLUME_NOT_MOUNTED      211  /* 0xD3 */
  59. #define BAD_PAGE_BOUNDARY          212  /* 0xD4 */
  60. #define INSPECT_FAILURE            213  /* 0xD5 */
  61. #define EA_ALREADY_CLAIMED         214  /* 0xD6 */
  62. #define ODD_BUFFER_SIZE            215  /* 0xD7 */
  63. #define NO_SCORECARDS              216  /* 0xD8 */
  64. #define BAD_EDS_SIGNATURE          217  /* 0xD9 */
  65. #define EA_SPACE_LIMIT             218  /* 0xDA */
  66. #define EA_KEY_CORRUPT             219  /* 0xDB */
  67. #define EA_KEY_LIMIT               220  /* 0xDC */
  68. #define TALLY_CORRUPT              221  /* 0xDD */
  69.  
  70. typedef struct
  71. {
  72.   NWCONN_HANDLE connID;
  73.   nuint32 rwPosition;
  74.   nuint32 EAHandle;
  75.   nuint32 volNumber;
  76.   nuint32 dirBase;
  77.   nuint8  keyUsed;
  78.   nuint16 keyLength;
  79.   nuint8  key[256];
  80. } NW_EA_HANDLE;
  81.  
  82. typedef struct
  83. {
  84.   NWCONN_HANDLE connID;
  85.   nuint16 nextKeyOffset;
  86.   nuint16 nextKey;
  87.   nuint32 numKeysRead;
  88.   nuint32 totalKeys;
  89.   nuint32 EAHandle;
  90.   nuint16 sequence;
  91.   nuint16 numKeysInBuffer;
  92.   nuint8  enumBuffer[512];
  93. } NW_EA_FF_STRUCT;
  94.  
  95. NWCCODE N_API NWCloseEA
  96. (
  97.    NW_EA_HANDLE N_FAR * EAHandle
  98. );
  99.  
  100. NWCCODE N_API NWFindFirstEA
  101. (
  102.    NWCONN_HANDLE  conn,
  103.    NW_IDX N_FAR *   idxStruct,
  104.    NW_EA_FF_STRUCT N_FAR * ffStruct,
  105.    NW_EA_HANDLE N_FAR * EAHandle,
  106.    pnstr8         EAName
  107. );
  108.  
  109. NWCCODE N_API NWFindNextEA
  110. (
  111.    NW_EA_FF_STRUCT N_FAR * ffStruct,
  112.    NW_EA_HANDLE N_FAR * EAHandle,
  113.    pnstr8         EAName
  114. );
  115.  
  116. NWCCODE N_API NWReadEA
  117. (
  118.    NW_EA_HANDLE N_FAR * EAHandle,
  119.    nuint32        bufferSize,
  120.    pnuint8        buffer,
  121.    pnuint32       totalEASize,
  122.    pnuint32       amountRead
  123. );
  124.  
  125. NWCCODE N_API NWWriteEA
  126. (
  127.    NW_EA_HANDLE N_FAR * EAHandle,
  128.    nuint32        totalWriteSize,
  129.    nuint32        bufferSize,
  130.    pnuint8        buffer,
  131.    pnuint32       amountWritten
  132. );
  133.  
  134. NWCCODE N_API NWGetEAHandleStruct
  135. (
  136.    NWCONN_HANDLE  conn,
  137.    pnstr8         EAName,
  138.    NW_IDX N_FAR *   idxStruct,
  139.    NW_EA_HANDLE N_FAR * EAHandle
  140. );
  141.  
  142. NWCCODE N_API NWOpenEA
  143. (
  144.    NWCONN_HANDLE  conn,
  145.    NWDIR_HANDLE   dirHandle,
  146.    pnstr8         path,
  147.    pnstr8         EAName,
  148.    nuint8         nameSpace,
  149.    NW_EA_HANDLE N_FAR * EAHandle
  150. );
  151.  
  152. #ifdef __cplusplus
  153. }
  154. #endif
  155.  
  156. #include "npackoff.h"
  157. #endif
  158.