home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_03_03
/
3n03025b
< prev
next >
Wrap
Text File
|
1992-02-08
|
477b
|
17 lines
Req_Head rh; // request header
void (_far *strategy)(); // strategy entry
void (_far *intrpt)(); // interrupt entry
unsigned char unit; // sub-unit ID
rh.rh_lth = sizeof rh; // only header in packet
rh.rh_cc = 133; // call code for stop
rh.rh_sub_unit = unit;
call_driver(&rh, strategy, intrpt); // request stop
if (rh.rh_stat & 0x8000)
{ /* error on stop */ }
else
{ /* stopped OK */ }
/* End of File */