PPC End Session (Macintosh)

Ends a PPC session. Ending a session causes all outstanding calls associated with the session (PPC Read and PPC Write calls) to finish with a sessClosedErr (error –917).

session refnum is a session refnum, which you use in subsequent communication for this session.
error, if negative, indicates a Macintosh error. If positive, error indicates an error internal to the CIN that generated it. Refer to the PPC Error Codes for a list of PPC error codes and their descriptions.