SKELETON.C
上传用户:lx1888888
上传日期:2007-01-04
资源大小:136k
文件大小:1k
源码类别:

驱动编程

开发平台:

Visual C++

  1. #include <windows.h>
  2. #include "driver.h"
  3. DEVICECONTEXT Device1 = { 0 };
  4. DRIVERPARAMS DefaultParams = { 1024 };
  5. HDEVICE FAR PASCAL _export DeviceOpen( void )
  6. {
  7. OutputDebugString( "DeviceOpenn");
  8. return &Device1;
  9. }
  10. int FAR PASCAL _export DeviceClose( HDEVICE hDevice )
  11. {
  12. OutputDebugString( "DeviceClosen");
  13. return 0;
  14. }
  15. int FAR PASCAL _export DeviceGetWriteStatus( HDEVICE hDevice, LPWORD pusStatus )
  16. {
  17. OutputDebugString( "DeviceGetWriteStatusn");
  18. return 0;
  19. }
  20. int FAR PASCAL _export DeviceGetReadStatus( HDEVICE hDevice, LPWORD pusStatus )
  21. {
  22. OutputDebugString( "DeviceGetReadStatusn");
  23. return 0;
  24. }
  25. int FAR PASCAL _export DeviceWrite( HDEVICE hDevice, LPBYTE lpData, LPWORD pcBytes )
  26. {
  27. OutputDebugString( "DeviceWriten");
  28. return 0;
  29. }
  30. int FAR PASCAL _export DeviceRead( HDEVICE hDevice, LPBYTE lpData, LPWORD pcBytes )
  31. {
  32. OutputDebugString( "DeviceReadn");
  33. return 0;
  34. }
  35. int FAR PASCAL _export DeviceSetDriverParams( HDEVICE hDevice, PDRIVERPARAMS pParms )
  36. {
  37. OutputDebugString( "DeviceSetDriverParamsn");
  38. return 0;
  39. }
  40. int FAR PASCAL _export DeviceGetDriverParams( HDEVICE hDevice, PDRIVERPARAMS pParms )
  41. {
  42. OutputDebugString( "DeviceGetDriverParamsn");
  43. return 0;
  44. }
  45. int FAR PASCAL _export DeviceGetDriverCapabilities( HDEVICE hDevice, PPDRIVERCAPS ppDriverCaps )
  46. {
  47. OutputDebugString( "DeviceGetDriverCapabilitiesn");
  48. return 0;
  49. }