home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / aspisrc.zip / remove.c < prev    next >
C/C++ Source or Header  |  1998-11-29  |  734b  |  30 lines

  1. #include <devhelp.h>
  2. #include <devdebug.h>
  3. #include <devtype.h>
  4. #include <devrp.h>
  5.  
  6.  
  7. #if defined(DEBUG)
  8.  
  9. static const char* MSG_REMOVE         = "ASPI Router Device Driver Remove";
  10.  
  11. #else
  12.  
  13. #define            MSG_REMOVE         0
  14.  
  15. #endif // DEBUG
  16.  
  17. WORD16 StratRemove(RP FAR* _rp)
  18.  {
  19.    RPIOCtl FAR* rp = (RPIOCtl FAR*)_rp;
  20.   // This command should shutdown any hardware devices that were setup
  21.   // during the initialization stage.  Also, this command should free
  22.   // any resources that the driver owns.
  23.   // Print a message to the debug terminal saying when shutdown
  24.   cdbg << SKELETON;
  25.   cdbg << MSG_REMOVE << hex << setw(4);
  26.   cdbg << setw() << setb() << endl;
  27.  
  28.   return RPDONE;// | RPERR_COMMAND;
  29.  };
  30.