SKELETON.C
资源名称:vxdsrc.zip [点击查看]
上传用户:lx1888888
上传日期:2007-01-04
资源大小:136k
文件大小:1k
源码类别:
驱动编程
开发平台:
Visual C++
- #include <windows.h>
- #include "driver.h"
- DEVICECONTEXT Device1 = { 0 };
- DRIVERPARAMS DefaultParams = { 1024 };
- HDEVICE FAR PASCAL _export DeviceOpen( void )
- {
- OutputDebugString( "DeviceOpenn");
- return &Device1;
- }
- int FAR PASCAL _export DeviceClose( HDEVICE hDevice )
- {
- OutputDebugString( "DeviceClosen");
- return 0;
- }
- int FAR PASCAL _export DeviceGetWriteStatus( HDEVICE hDevice, LPWORD pusStatus )
- {
- OutputDebugString( "DeviceGetWriteStatusn");
- return 0;
- }
- int FAR PASCAL _export DeviceGetReadStatus( HDEVICE hDevice, LPWORD pusStatus )
- {
- OutputDebugString( "DeviceGetReadStatusn");
- return 0;
- }
- int FAR PASCAL _export DeviceWrite( HDEVICE hDevice, LPBYTE lpData, LPWORD pcBytes )
- {
- OutputDebugString( "DeviceWriten");
- return 0;
- }
- int FAR PASCAL _export DeviceRead( HDEVICE hDevice, LPBYTE lpData, LPWORD pcBytes )
- {
- OutputDebugString( "DeviceReadn");
- return 0;
- }
- int FAR PASCAL _export DeviceSetDriverParams( HDEVICE hDevice, PDRIVERPARAMS pParms )
- {
- OutputDebugString( "DeviceSetDriverParamsn");
- return 0;
- }
- int FAR PASCAL _export DeviceGetDriverParams( HDEVICE hDevice, PDRIVERPARAMS pParms )
- {
- OutputDebugString( "DeviceGetDriverParamsn");
- return 0;
- }
- int FAR PASCAL _export DeviceGetDriverCapabilities( HDEVICE hDevice, PPDRIVERCAPS ppDriverCaps )
- {
- OutputDebugString( "DeviceGetDriverCapabilitiesn");
- return 0;
- }
English
