Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.0 KiB

  1. #ifndef _DEVICEIO_H
  2. #define _DEVICEIO_H
  3. #include "devctrldefs.h"
  4. /////////////////////////////////////////////////
  5. // //
  6. // BASE CLASS for simple device control object //
  7. // //
  8. /////////////////////////////////////////////////
  9. class CDevIO {
  10. public:
  11. CDevIO(PDEVCTRL pDeviceControl);
  12. ~CDevIO();
  13. virtual BOOL SetXRes(LONG xRes);
  14. virtual BOOL SetYRes(LONG yRes);
  15. virtual BOOL SetXPos(LONG xPos);
  16. virtual BOOL SetYPos(LONG yPos);
  17. virtual BOOL SetXExt(LONG xExt);
  18. virtual BOOL SetYExt(LONG yExt);
  19. virtual BOOL SetDataType(LONG DataType);
  20. virtual BOOL Scan();
  21. long m_xres;
  22. long m_yres;
  23. long m_xpos;
  24. long m_ypos;
  25. long m_xext;
  26. long m_yext;
  27. long m_datatype;
  28. PDEVCTRL m_pDeviceControl;
  29. BOOL RawWrite(LONG lPipeNum,BYTE *pbuffer,LONG lbuffersize,LONG lTimeout);
  30. BOOL RawRead(LONG lPipeNum,BYTE *pbuffer,LONG lbuffersize,LONG *plbytesread,LONG lTimeout);
  31. private:
  32. protected:
  33. };
  34. #endif