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: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 26 - Ports Reference / Functions
Getting Information About Ports /


OTGetBusTypeFromPortRef

Extracts the value of the bus type from a port reference.

C INTERFACE
UInt16 OTGetBusTypeFromPortRef(OTPortRef ref);
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
ref
The port reference from which you wish to extract the bus type.
function result
Possible return values are listed in "The Port Reference"
DISCUSSION
The OTGetBusTypeFromPortRef function extracts the bus type value from a port reference. You can obtain such a port reference using the OTGetIndexedPort function to access the port registry.

You can use the OTGetDeviceTypeFromPortRef function and the OTGetSlotFromPortRef function to get device type and slot number information from the port reference.

SEE ALSO
The OTCreatePortRef function.

"Obtaining Port Information".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998