home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / NETCLB35.ZIP / NETCLB35.EXE / INCLUDE / NWDIRECT.H < prev    next >
C/C++ Source or Header  |  1996-01-03  |  5KB  |  126 lines

  1. #ifndef NWDIRECT_H
  2. #define NWDIRECT_H
  3.  
  4. /*********************************/
  5. /* Directory Services prototypes */
  6. /*********************************/
  7.  
  8. typedef struct {
  9.    long system_elapsed_time;
  10.    byte volume_number;
  11.    byte logical_drive_number;
  12.    int  sectors_per_block;
  13.    int  starting_block;
  14.    int  total_blocks;
  15.    int  available_blocks;
  16.    int  total_directory_slots;
  17.    int  available_directory_slots;
  18.    int  max_used_dir_entries;
  19.    byte volume_is_hashed;
  20.    byte volume_is_cached;
  21.    byte volume_is_removable;
  22.    byte volume_is_mounted;
  23.    char volume_name[17];
  24.    } VOLUME_STATISTICS;         /* GetVolumeInformation */
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. int   AddTrusteeToDirectory(byte directoryHandle,
  30.                  char *directoryPath,long trusteeObjectID,
  31.                  byte trusteeRightsMask);
  32. int   AddUserDiskSpaceRestriction(byte volumeNumber,
  33.                  long objectID, long volumeLimit);
  34. int   AllocPermanentDirectoryHandle(byte directoryHandle,
  35.                  char *directoryPath,char driveLetter,
  36.                  byte *newDirectoryHandle,
  37.                  byte *effectiveRightsMask);
  38. int   AllocTemporaryDirectoryHandle(byte directoryHandle,
  39.                  char *directoryPath,char driveLetter,
  40.                  byte *newDirectoryHandle,
  41.                  byte *effectiveRightsMask);
  42. int   CreateDirectory(byte directoryHandle,byte maximumRightsMask,
  43.                  char *directoryPath);
  44. int   DeallocateDirectoryHandle(byte directoryHandle);
  45. int   DeleteDirectory(byte directoryHandle,
  46.                  char *directoryPath);
  47. void  DeleteFakeRoot(byte drive);
  48. int   DeleteTrusteeFromDirectory(byte directoryHandle,
  49.                  char *directoryPath,long trusteeObjectID);
  50. int   GetCurrentDirectory(char driveNumber,
  51.                  char *directoryPath);
  52. int   GetDirectoryHandle(char driveNumber,
  53.                  byte *statusFlags);
  54. int   GetDirectoryPath(byte directoryHandle,
  55.                  char *directoryPath);
  56. int   GetEffectiveDirectoryRights(byte directoryHandle,
  57.                  char *directoryPath,
  58.                  byte *effectiveRights);
  59. int   GetVolumeInformation(byte volumeNumber,
  60.                  VOLUME_STATISTICS *volStats);
  61. int   GetVolumeInfoWithHandle(byte directoryHandle,
  62.                  char *volumeName,
  63.                  word *sectorsPerBlock,
  64.                  word *totalBlocks,
  65.                  word *availableBlocks,
  66.                  word *totalDirectorySlots,
  67.                  word *availableDirectorySlots,
  68.                  int *volumeIsRemovable);
  69. int   GetVolumeInfoWithNumber(byte volumeNumber,
  70.                  char *volumeName,
  71.                  word *sectorsPerBlock,
  72.                  word *totalBlocks,
  73.                  word *availableBlocks,
  74.                  word *totalDirectorySlots,
  75.                  word *availableDirectorySlots,
  76.                  int *volumeIsRemovable);
  77. int   GetVolumeName(int volumeNumber,char *volumeName);
  78. int   GetVolumeNumber(char *volumeName,
  79.                  int *volumeNumber);
  80. int   MapFakeRoot(byte drive,char *path);
  81. int   ModifyMaximumRightsMask(byte directoryHandle,
  82.                  char *directoryPath,byte revokeRightsMask,
  83.                  byte grantRightsMask);
  84. int   RenameDirectory(byte directoryHandle,
  85.                  char *directoryPath,
  86.                  char *newDirectoryName);
  87. int   RestoreDirectoryHandle(char *saveBuffer,
  88.                  byte *newDirectoryHandle,
  89.                  byte *effectiveRightsMask);
  90. int   SaveDirectoryHandle(byte directoryHandle,
  91.                  char *saveBuffer);
  92. int   ScanBinderyObjectTrusteePaths(long objectID,
  93.                  byte volumeNumber,int *sequenceNumber,
  94.                  char *trusteeAccessMask,
  95.                  char *trusteePathName);
  96. int   ScanDirectoryForTrustees(byte directoryHandle,
  97.                  char *directoryPath,
  98.                  int *sequenceNumber,
  99.                  char *directoryName,
  100.                  nw_date *creationDate,
  101.                  nw_time *creationTime,
  102.                  long *ownerID,long *trusteeID,
  103.                  byte *trusteeRightsMask);
  104. int   ScanDirectoryInformation(byte searchDirectoryHandle,
  105.                  char *searchDirectoryPath,
  106.                  int  *subdirNumber,
  107.                  char *directoryName,
  108.                  nw_date *creationDate,
  109.                  nw_time *creationTime,
  110.                  long *ownerObjectID,
  111.                  byte *maximumRightsMask);
  112. int   SetDirectoryHandle(byte sourceDirectoryHandle,
  113.                  char *sourceDirectoryPath,
  114.                  byte targetDirectoryHandle);
  115. int   SetDirectoryInformation(byte directoryHandle,
  116.                  char *directoryPath,
  117.                  nw_date *creationDate,
  118.                  nw_time *creationTime,
  119.                  long *ownerObjectID,
  120.                  byte *maximumRightsMask);
  121. #ifdef __cplusplus
  122. }
  123. #endif
  124.  
  125. #endif
  126.