Important: The information in this document is obsolete and should not be used for new development.
GetIndADB
You can use theGetIndADBfunction to get information about an ADB device, specified by its index in the ADB device table.
FUNCTION GetIndADB (VAR info: ADBDataBlock; devTableIndex: Integer): ADBAddress;
info- An ADB data block. On exit, the fields of this parameter block are filled with information about the specified ADB device.
devTableIndex- An index into the ADB device table.
<-- devType SignedByte The device handler ID. <-- origADBAddr SignedByte The device's default ADB address. <-- dbServiceRtPtr Ptr The address of the device's device handler routine. <-- dbDataAreaAddr Ptr The address of the device handler's data storage area. DESCRIPTION
TheGetIndADBfunction returns information from the ADB device table entry whose index number is specified by thedevTableIndexparameter. The information is returned in an ADB data block, passed in theinfoparameter.The
GetIndADBfunction also returns the current ADB address of the specified device as its function result. If, however,GetIndADBis unable to find the specified entry in the ADB device table, it returns a negative value as its function result. In that case, the fields of theinfodata block are undefined.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.