Technical information

CHAPTER 3
The PC Interface Driver
Configuring the PC 37
The RSNetDriveConfig data structure contains the current configuration for folder
sharing for each PC drive letter. If the PC has its LASTDRIVE parameter set to less
than Z or if other block device drivers are loaded on the PC, 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 PC 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.
rsSetNetDriveConfig 3
You can use the rsSetNetDriveConfig control call to establish links between
Macintosh directories and PC drive letters.
Parameter block
ioCompletion long Pointer to the completion routine
ioResult word
ioRefNum word
csCode word Equals rsSetNetDriveConfig
csParam+0 word Entry number of RSNetDriveConfig (0=E)
This call simply notifies the PC Interface driver that an entry in the RSNetDriveConfig
data structure has been modified.
rsSetComPortConfig 3
You can use the rsSetComPortConfig control call to set the configurations of the two
communication ports (COM1 and COM2) on the PC. Each communication port can have
a virtual connection to either the modem port, the printer port, a communication tool
box port, a spool file, or the null device.
Parameter block
ioCompletion long Pointer to the completion routine
ioResult word
ioRefNum word
csCode word Equals rsSetComPortConfig
csParam+0 long Pointer to RSComConfig
A pointer to an RSComConfig data structure is passed in the csParam field.
typedef struct{
short type; // Port type (rsModemComPort, rsPrinterComPort, etc.)
short vRefNum; // Volume reference number for serial spool file
long dirID; // Directory ID
long fileNamePtr;// Pointer to the filename
} RSComConfig[2], *RSComConfigPtr;