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 >
Text File  |  1992-02-08  |  477b  |  17 lines

  1. Req_Head rh;                 // request header
  2. void (_far *strategy)();     // strategy entry
  3. void (_far *intrpt)();       // interrupt entry
  4. unsigned char unit;     // sub-unit ID
  5.  
  6.  
  7. rh.rh_lth = sizeof rh;  // only header in packet
  8. rh.rh_cc = 133;         // call code for stop
  9. rh.rh_sub_unit = unit;
  10. call_driver(&rh, strategy, intrpt);  // request stop
  11. if (rh.rh_stat & 0x8000)
  12.       { /* error on stop */ }
  13. else
  14.       { /* stopped OK */ }
  15. /* End of File */ 
  16.  
  17.