home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / aspisrc.zip / read.c < prev    next >
C/C++ Source or Header  |  1998-11-29  |  696b  |  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_READ     = "Watcom Sample Device Driver Read";
  10.  
  11. #else
  12.  
  13. #define            MSG_READ     0
  14.  
  15. #endif // DEBUG
  16.  
  17. WORD16 StratRead(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 read
  24.   cdbg << SKELETON;
  25.   cdbg << MSG_READ << hex << setw(4);
  26.   cdbg << setw() << setb() << endl;
  27.  
  28.   return RPDONE;
  29.   }
  30.