EDetachPH
EDetachPH Detach a protocol handler from The .ENET Driver
#include <ENET.h> AppleTalk Manager
OSErr EDetachPH( thePBptr, async);
EParamBlkPtr thePBptr; address of an EParamBlock structure
Boolean async; 0=await completion; 1=immediate return
returns Error Code; 0=no error
EDetachPH detaches a protocol handler from The .ENET Driver.
thePBptr is a pointer to an EParamBlock structure. The relevant fields are as
follows:
Out-InName Type Size Offset Description
¨ ioResult short 2 16 Result code
Æ csCode short 2 26 Always ENetDetachPH
Æ eProtType short 2 28 Ethernet protocol type
async is a Boolean value. Use FALSE for normal ( synchronous) operation
or TRUE to function asynchronously. See Async I/O.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
LAPProtErr (-94) Protocol handler is already attached or node's
protocol table is full.

Notes: Once you have removed a protocol type from the node's protocol table with
this function, The .ENET Driver no longer delivers packets with that
protocol type. You specify the protocol type in the eProtType parameter.
The ioResult parameter returns the result of the function. If you call the
function asynchronously, the function sets this field to 1 as soon as it
begins execution, and it changes the field to the actual result code when it
completes execution. The csCode parameter is a routine selector that is set
automatically for you by the high-level language interface; it is always
equal to ENetDetachPH for this function.
When you call the EDetachPH function, any pending calls to the ERead
function terminate with the reqAborted result code.