PDetachPH
PDetachPH Remove protocol type and handler from protocol table
#include <AppleTalk.h> AppleTalk Manager
OSErr PDetachPH( thePBptr, async);
MPPPBPtr thePBptr; pointer to an LAPparms structure
Boolean async; 0=await completion; 1=immediate return
returns Error Code; 0=no error
PDetachPH removes from the node's protocol table the specified ALAP
protocol type and corresponding protocol handler.
thePBptr iis a pointer to an LAPparms structure.
Out-In Name Type Size Offset Description
Æ csCode short 2 26 always detachPH
Æ protType char 1 28 ALAP protocol type
async is a Boolean value. Use FALSE for normal ( synchronous) operation
or TRUE to enqueue the request and resume control immediately. See
Async I/O.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
lapProtErr (-94) Error attaching protocol type

Notes: protType specifies the type of the protocol handler to remove.
Most programs will never need to call ALAP, because higher- level
protocols will automatically call ALAP as necessary. If you do want to send a
frame directly via ALAP, call the PWriteLAP function. There is no
PReadLAP function. If you want to read ALAP frames, you must call
PAttachPH to add your protocol handler to the node's protocol handler
table. The ALAP module will examine every incoming frame and call your
protocol handler for each frame received with the correct ALAP protocol.
When your program no longer wants to receive frames with a particular
ALAP protocol type value, it can call PDetachPH to remove the
corresponding protocol handler from the protocol handler table.