Control
Control Send control information to the device driver
#include <Devices.h> Device Manager
OSErr Control( refNum, csCode, csParamPtr );
short refNum ; driver reference as obtained from OpenDriver
short csCode ; value specifying information type
Ptr csParamPtr ; address of parameter block containing control code
returns Error Code; 0=no error
Control sends control information from memory to an open device driver.
refNum is the reference number of an open device driver. See
csCode is a short specifying the kind of control code contained in the
parameter block.
csParamPtr is the address of parameter block containing the control code.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
controlErr (-17) Driver can't respond to Call
badUnitErr (-21) refNum doesn't match unit table
unitEmptyErr (-22) refNum specifies NIL handle in unit table
notOpenErr (-28) Driver not open

Notes: The values passed in csCode and pointed at by the parameter pointer vary,
depending on which driver is being called.