Important: The information in this document is obsolete and should not be used for new development.
MPPOpen
If the .MPP driver has not already been opened, theMPPOpenfunction opens
the .MPP driver, initializes the driver's variables, and assigns a node ID to the
Macintosh computer.
FUNCTION MPPOpen: OSErr;DESCRIPTION
TheMPPOpenfunction first determines whether the .MPP driver has already been opened. If it has,MPPOpenreturns an error code. If the .MPP driver is not open,MPPOpenloads the driver into the system heap and then initializes the driver's variables before dynamically assigning a node ID to the system. It also loads the .ATP driver
and the NBP code into the system heap.Apple Computer, Inc. recommends that you use the Device Manager's
OpenDriverfunction to open the .MPP driver instead of using theMPPOpenfunction.SPECIAL CONSIDERATIONS
For versions of AppleTalk before AppleTalk version 56, if serial port B isn't configured for AppleTalk or if it is already in use, the .MPP driver is not loaded and theportInUseresult code is returned.RESULT CODES
noErr 0 No error portInUse -97 Driver open error code indicating that the port is in use portNotCf -98 Driver open error code indicating that the parameter RAM is not configured for this connection SEE ALSO
TheMPPOpenfunction does not return the .MPP driver reference number, as theOpenDriverfunction does. For information on theOpenDriverfunction, see
the chapter "Device Manager" in Inside Macintosh: Devices.