Specifications

CHAPTER 4
Software Support
Configuring the PC System 59
rsGetNetDriveConfig 4
You can use the rsGetNetDriveConfig control routine to obtain configuration data
about the drives. This routine returns a pointer to an array of 22 RSNetDriveConfig
data structures, one for each drive letter from E through Z.
The status code for this routine is rsGetNetDriveConfig = 650.
Parameter block
—> indicates input to the driver
<— indicates output from the driver
The RSNetDriveConfig data structure pointed to by csParam is shown below.
The RSNetDriveConfig data structure contains the current configuration for folder
sharing for each PC system drive letter. If the PC system has its LASTDRIVE parameter
set to less than Z or if other block device drivers are loaded on the PC system, not all
drive letters will be available. The data structures for drives that are not available have
their status parameters set to 1 by the interface driver.
The caller can use the returned pointer to modify an entry in the RSNetDriveConfig
data structure and then call the rsSetNetDriveConfig control call.
—> ioCompletion long Pointer to the completion routine.
<— ioResult word Device driver’s result code.
—> ioRefNum word Device driver’s reference number.
—> csCode word Equals rsGetNetDriveConfig.
<— csParam+0 long Pointer to RSNetDriveConfig.
typedef struct{
char status; // 0 = unused, -1 = in use, 1 = cannot be used
char changed; // Used by the driver, do not use
short vRefNum; // Reference number of volume containing shared drive
long dirID; // Directory ID
} RSNetDriveConfig[26], *RSNetDriveConfigPtr;