Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 5 - ADB Manager / ADB Manager Reference
ADB Manager Routines / Setting ADB Device Information


SetADBInfo

You can use the SetADBInfo 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.
-->siServiceRtPtrPtrThe address of the device handler for this device.
-->siDataAreaAddrPtrThe address of the handler's data area for the device at the specified address.

DESCRIPTION
The SetADBInfo function sets the device handler address and the data area address in the ADB device table entry whose address is specified by the adbAddr 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
noErr0No error
SEE ALSO
See "ADB Information Block," beginning on page 5-38, for the structure of the ADB information block.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996