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 >
Wrap
Text File
|
1991-03-27
|
686b
|
38 lines
/*
* File: Command.C
* Purpose: Contains standard device driver
* command function handlers
*/
#include "device.h"
void ShowString (char far *str);
/*
* DevOpen : DEVICE OPEN function handler
* Indicates successful command completion
*/
WORD DevOpen (RH far *rh)
{
return DEV_DONE;
}
/*
* DevClose : DEVICE CLOSE function handler
* Indicates successful command completion
*/
WORD DevClose (RH far *rh)
{
return DEV_DONE;
}
/*
* UnknownCommand : General error handler
* Returns DEV_ECMD status for unknown or
* unimplemented commands
*/
WORD UnknownCommand (RH far *rh)
{
return DEV_ERROR | DEV_ECMD | DEV_DONE;
}