home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_05 / 2n05031a < prev    next >
Text File  |  1991-03-27  |  686b  |  38 lines

  1. /*
  2.  *  File:    Command.C
  3.  *  Purpose:    Contains standard device driver
  4.  *        command function handlers
  5.  */
  6.  
  7. #include    "device.h"
  8.  
  9. void    ShowString (char far *str);
  10.  
  11. /* 
  12.  * DevOpen : DEVICE OPEN function handler
  13.  *   Indicates successful command completion
  14.  */
  15. WORD DevOpen (RH far *rh)
  16. {
  17.     return DEV_DONE;
  18. }
  19.  
  20. /* 
  21.  * DevClose : DEVICE CLOSE function handler
  22.  *   Indicates successful command completion
  23.  */
  24. WORD DevClose (RH far *rh)
  25. {
  26.     return DEV_DONE;
  27. }
  28.  
  29. /* 
  30.  * UnknownCommand : General error handler
  31.  *   Returns DEV_ECMD status for unknown or
  32.  *   unimplemented commands
  33.  */
  34. WORD UnknownCommand (RH far *rh)
  35. {
  36.     return DEV_ERROR | DEV_ECMD | DEV_DONE;
  37. }
  38.