Important: The information in this document is obsolete and should not be used for new development.
MyPortFilter
You can provide a pointer to a port filter function in theportFilterparameter of thePPCBrowserfunction.You can use a port filter function to refine the list of PPC ports that thePPCBrowserfunction displays in the program linking dialog box.
FUNCTION MyPortFilter (locationName: LocationNamePtr; thePortInfo: PortInfoPtr): Boolean;
locationName- A pointer to a location name record. This record specifies the location of the PPC port currently under consideration for display in the program linking dialog box.
thePortInfo- A pointer to a port information record. This record specifies the port information for the PPC port currently under consideration for display in the program linking dialog box.
DESCRIPTION
ThePPCBrowserfunction calls your port filter function once for each port before it adds that port to the dialog list. Your port filter function should returnTRUEfor each port that should be displayed in the program linking dialog box, andFALSEfor each port that shouldn't be displayed.SEE ALSO
For an example of a port filter function, see Listing 11-3 on page 11-24. For a description of the location name record, see page 11-50. For a description of the port information record, see page 11-51.