home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / aspisrc.zip / shutdown.c < prev    next >
C/C++ Source or Header  |  1998-11-29  |  841b  |  32 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_SHUTDOWN         = "ASPI Router Device Driver Remove";
  10.  
  11. #else
  12.  
  13. #define            MSG_SHUTDOWN         0
  14.  
  15. #endif // DEBUG
  16.  
  17. WORD16 StratShutdown(RP FAR* _rp)
  18.   {
  19.    RPIOCtl FAR* rp = (RPIOCtl FAR*)_rp;
  20.   // If any work needs to be done when the system is shutdown, it
  21.   // should be performed here.
  22.   // This command should shutdown any hardware devices that were setup
  23.   // during the initialization stage.  Also, this command should free
  24.   // any resources that the driver owns.
  25.   // Print a message to the debug terminal saying when shutdown
  26.   cdbg << SKELETON;
  27.   cdbg << MSG_SHUTDOWN << hex << setw(4);
  28.   cdbg << setw() << setb() << endl;
  29.  
  30.   return RPDONE;//| RPERR_COMMAND;
  31.   }
  32.