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 /


OTGetDeviceTypeFromPortRef

Extracts the value of the hardware device type from a port reference.

C INTERFACE
UInt16 OTGetDeviceTypeFromPortRef(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
device type.
function result
Possible return values are listed in "The Port Reference".
DISCUSSION
The OTGetDeviceTypeFromPortRef function extracts the device type value from a port reference. You can obtain such a port reference using the OTGetIndexedPort function to access the port registry.

You can also use the OTGetBusTypeFromPortRef function and the OTGetSlotFromPortRef function to get the bus type and slot number information from the port reference.

SEE ALSO
"Obtaining Port Information".

The OTCreatePortRef function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998