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.

67 lines
1.2 KiB

  1. #include "stdafx.h"
  2. #include "devio.h"
  3. CDevIO::CDevIO(PDEVCTRL pDeviceControl)
  4. {
  5. m_pDeviceControl = pDeviceControl;
  6. }
  7. BOOL CDevIO::SetXRes(LONG xRes)
  8. {
  9. return FALSE;
  10. }
  11. BOOL CDevIO::SetYRes(LONG yRes)
  12. {
  13. return FALSE;
  14. }
  15. BOOL CDevIO::SetXPos(LONG xPos)
  16. {
  17. return FALSE;
  18. }
  19. BOOL CDevIO::SetYPos(LONG yPos)
  20. {
  21. return FALSE;
  22. }
  23. BOOL CDevIO::SetXExt(LONG xExt)
  24. {
  25. return FALSE;
  26. }
  27. BOOL CDevIO::SetYExt(LONG yExt)
  28. {
  29. return FALSE;
  30. }
  31. BOOL CDevIO::SetDataType(LONG DataType)
  32. {
  33. return FALSE;
  34. }
  35. BOOL CDevIO::Scan()
  36. {
  37. return FALSE;
  38. }
  39. BOOL CDevIO::RawWrite(LONG lPipeNum,BYTE *pbuffer,LONG lbuffersize,LONG lTimeout)
  40. {
  41. DWORD dwBytesWritten = 0;
  42. return WriteFile(m_pDeviceControl->DeviceIOHandles[lPipeNum],
  43. pbuffer,
  44. lbuffersize,
  45. &dwBytesWritten,
  46. NULL);
  47. }
  48. BOOL CDevIO::RawRead(LONG lPipeNum,BYTE *pbuffer,LONG lbuffersize,LONG *plbytesread,LONG lTimeout)
  49. {
  50. DWORD dwBytesRead = 0;
  51. return ReadFile(m_pDeviceControl->DeviceIOHandles[lPipeNum],
  52. pbuffer,
  53. lbuffersize,
  54. &dwBytesRead,
  55. NULL);
  56. }