<b>(a)</b> Err SysLibFind(CharPtr libName, Word *refNum); <b>(b)</b> Err IrOpen(Word refnum, DWord options); Err IrClose(Word refnum); <b>(c)</b> IrStatus IrBind (UInt refNum, IrConnect* con, IrCallBack CallBack); IrStatus IrUnbind (UInt refNum, IrConnect* con); <b>(d)</b> typedef void (*IrCallBack)(IrConnect* con, IrCallbackParms* irData); <b>(e)</b> IrStatus IrSetDeviceInfo(UInt refnum, BytePtr info, Byte len);
Example 1: (a) The SysLibFind() prototype; (b) IrOpen() and IrClose() prototypes; (c) prototypes for IrBind() and IrUnbind(); (d) IrCallBack()'s definition; (e) IrSetDevice() prototype.
Copyright © 1999, Dr. Dobb's Journal