Important: The information in this document is obsolete and should not be used for new development.
SetADBInfo
You can use theSetADBInfo
function to set the address of the device handler routine and data area address for a specified ADB device.
FUNCTION SetADBInfo (VAR info: ADBSetInfoBlock; adbAddr: ADBAddress): OSErr;
info
- An ADB information block. On entry, the fields of this parameter block should contain the desired address of the device handler routine and
data area.adbAddr
- The ADB address of a device.
--> siServiceRtPtr Ptr The address of the device handler for this device. --> siDataAreaAddr Ptr The address of the handler's data area for the device at the specified address. DESCRIPTION
TheSetADBInfo
function sets the device handler address and the data area address in the ADB device table entry whose address is specified by theadbAddr
parameter.
- IMPORTANT
- You should send a Flush command to the device after calling it with
SetADBInfo
to avoid sending old data to the new data area address.RESULT CODES
noErr 0 No error SEE ALSO
See "ADB Information Block," beginning on page 5-38, for the structure of the ADB information block.