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 / Getting ADB Device Information


GetADBInfo

You can use the GetADBInfo function to get information about an ADB device, specified by its ADB address.

FUNCTION GetADBInfo (VAR info: ADBDataBlock; 
                     adbAddr: ADBAddress): OSErr;
info
An ADB data block. On exit, the fields of this parameter block are filled with information about the specified ADB device.
adbAddr
The ADB address of a device.
<--devTypeSignedByteThe device handler ID.
<--origADBAddrSignedByteThe device's default ADB address.
<--dbServiceRtPtrPtrThe address of the device's device handler.
<--dbDataAreaAddrPtrThe address of the device handler's data storage area.

DESCRIPTION
The GetADBInfo function returns, through the info parameter, information from the ADB device table entry of the device whose ADB address is specified by the adbAddr parameter.

SPECIAL CONSIDERATIONS
Once the ADB Manager has set the initial values for an ADB device in the ADB device table, it updates the device table entry for the device to reflect changes only to the address of the device handler routine and data area pointer.

RESULT CODES
noErr0No error

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996