OTFindPort
Obtains information about a port that corresponds to a given port name.C INTERFACE
Boolean OTFindPort (OTPortRecord* record, const char* portName);C++ INTERFACES
None. C++ applications use the C interface to this function.PARAMETERS
record- A pointer to a port structure that contains information about the port you specified with the
portNameparameter.portName- The name of the port about which you want information.
DESCRIPTION
TheOTFindPortfunction returns information about a port that corresponds to a given port name. Each port in a system has a unique port name, which you can obtain through a previous call or set of calls to theOTGetIndexedPortfunction.You must allocate the port structure; the function fills this structure with information about the port indicated by the
portNameparameter. If the function returnsfalse, the contents of the structure are not significant.SEE ALSO
For information about finding ports, see the sections "About Port Information" (page 6-5) and "Obtaining Port Information" (page 6-11).You can use the
OTGetIndexedPortfunction (page 6-32) to get port information by iterating through all available ports.The port structure is described in "The Port Structure" (page 6-17).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help