EParamHeader
short qType; 2 4 queue type
short ioTrap; 2 6 routine trap
Ptr ioCmdAddr; 4 8 routine address ProcPtr ioCompletion; 4 12 completion routine or NIL OSErr ioResult; 2 16 result code short ioVRefNum; 2 22 volume refnum or drive number
short ioRefNum; 2 24 driver reference number
short csCode; 2 26 call command code
28 (size of aggregate)
Notes: EParamHeader is a # define'd macro that defines the fields that are shared by the parameter block types used by the ENET Driver These fields
are placed in the beginning of every parameter block that has
The qLink, qType, ioTrap, ioCmdAddr, ioNamePtr, and ioVRefNum fields
are filled in by the Device Manager; your application should not have to set or read these fields. The ioResult field 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 ioCompletion field is a pointer to a completion routine that you can
completes execution of the function. If you are not providing a completion
routine, specify NIL for this field. You must obtain the driver reference
number from the OpenDriver function and use it for the ioRefNum field. The csCode field specifies the command to be executed; the high- level
the following constants as routine selectors:
.ENET driver routine selectors
ENetSetGeneral Set "general" mode
ENetGetInfo Get info
ENetRdCancel Cancel read
ENetDetachPH Detach protocol handler
ENetAttachPH Attach protocol handler
ENetAddMulti Add a multicast address
ENetDelMulti Delete a multicast address