home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
NETCLB35.ZIP
/
NETCLB35.EXE
/
INCLUDE
/
NWDIRECT.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-01-03
|
5KB
|
126 lines
#ifndef NWDIRECT_H
#define NWDIRECT_H
/*********************************/
/* Directory Services prototypes */
/*********************************/
typedef struct {
long system_elapsed_time;
byte volume_number;
byte logical_drive_number;
int sectors_per_block;
int starting_block;
int total_blocks;
int available_blocks;
int total_directory_slots;
int available_directory_slots;
int max_used_dir_entries;
byte volume_is_hashed;
byte volume_is_cached;
byte volume_is_removable;
byte volume_is_mounted;
char volume_name[17];
} VOLUME_STATISTICS; /* GetVolumeInformation */
#ifdef __cplusplus
extern "C" {
#endif
int AddTrusteeToDirectory(byte directoryHandle,
char *directoryPath,long trusteeObjectID,
byte trusteeRightsMask);
int AddUserDiskSpaceRestriction(byte volumeNumber,
long objectID, long volumeLimit);
int AllocPermanentDirectoryHandle(byte directoryHandle,
char *directoryPath,char driveLetter,
byte *newDirectoryHandle,
byte *effectiveRightsMask);
int AllocTemporaryDirectoryHandle(byte directoryHandle,
char *directoryPath,char driveLetter,
byte *newDirectoryHandle,
byte *effectiveRightsMask);
int CreateDirectory(byte directoryHandle,byte maximumRightsMask,
char *directoryPath);
int DeallocateDirectoryHandle(byte directoryHandle);
int DeleteDirectory(byte directoryHandle,
char *directoryPath);
void DeleteFakeRoot(byte drive);
int DeleteTrusteeFromDirectory(byte directoryHandle,
char *directoryPath,long trusteeObjectID);
int GetCurrentDirectory(char driveNumber,
char *directoryPath);
int GetDirectoryHandle(char driveNumber,
byte *statusFlags);
int GetDirectoryPath(byte directoryHandle,
char *directoryPath);
int GetEffectiveDirectoryRights(byte directoryHandle,
char *directoryPath,
byte *effectiveRights);
int GetVolumeInformation(byte volumeNumber,
VOLUME_STATISTICS *volStats);
int GetVolumeInfoWithHandle(byte directoryHandle,
char *volumeName,
word *sectorsPerBlock,
word *totalBlocks,
word *availableBlocks,
word *totalDirectorySlots,
word *availableDirectorySlots,
int *volumeIsRemovable);
int GetVolumeInfoWithNumber(byte volumeNumber,
char *volumeName,
word *sectorsPerBlock,
word *totalBlocks,
word *availableBlocks,
word *totalDirectorySlots,
word *availableDirectorySlots,
int *volumeIsRemovable);
int GetVolumeName(int volumeNumber,char *volumeName);
int GetVolumeNumber(char *volumeName,
int *volumeNumber);
int MapFakeRoot(byte drive,char *path);
int ModifyMaximumRightsMask(byte directoryHandle,
char *directoryPath,byte revokeRightsMask,
byte grantRightsMask);
int RenameDirectory(byte directoryHandle,
char *directoryPath,
char *newDirectoryName);
int RestoreDirectoryHandle(char *saveBuffer,
byte *newDirectoryHandle,
byte *effectiveRightsMask);
int SaveDirectoryHandle(byte directoryHandle,
char *saveBuffer);
int ScanBinderyObjectTrusteePaths(long objectID,
byte volumeNumber,int *sequenceNumber,
char *trusteeAccessMask,
char *trusteePathName);
int ScanDirectoryForTrustees(byte directoryHandle,
char *directoryPath,
int *sequenceNumber,
char *directoryName,
nw_date *creationDate,
nw_time *creationTime,
long *ownerID,long *trusteeID,
byte *trusteeRightsMask);
int ScanDirectoryInformation(byte searchDirectoryHandle,
char *searchDirectoryPath,
int *subdirNumber,
char *directoryName,
nw_date *creationDate,
nw_time *creationTime,
long *ownerObjectID,
byte *maximumRightsMask);
int SetDirectoryHandle(byte sourceDirectoryHandle,
char *sourceDirectoryPath,
byte targetDirectoryHandle);
int SetDirectoryInformation(byte directoryHandle,
char *directoryPath,
nw_date *creationDate,
nw_time *creationTime,
long *ownerObjectID,
byte *maximumRightsMask);
#ifdef __cplusplus
}
#endif
#endif