windows-nt/Source/XPSP1/NT/printscan/wia/test/devctrl/devio.cpp

68 lines
1.2 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
#include "stdafx.h"
#include "devio.h"
CDevIO::CDevIO(PDEVCTRL pDeviceControl)
{
m_pDeviceControl = pDeviceControl;
}
BOOL CDevIO::SetXRes(LONG xRes)
{
return FALSE;
}
BOOL CDevIO::SetYRes(LONG yRes)
{
return FALSE;
}
BOOL CDevIO::SetXPos(LONG xPos)
{
return FALSE;
}
BOOL CDevIO::SetYPos(LONG yPos)
{
return FALSE;
}
BOOL CDevIO::SetXExt(LONG xExt)
{
return FALSE;
}
BOOL CDevIO::SetYExt(LONG yExt)
{
return FALSE;
}
BOOL CDevIO::SetDataType(LONG DataType)
{
return FALSE;
}
BOOL CDevIO::Scan()
{
return FALSE;
}
BOOL CDevIO::RawWrite(LONG lPipeNum,BYTE *pbuffer,LONG lbuffersize,LONG lTimeout)
{
DWORD dwBytesWritten = 0;
return WriteFile(m_pDeviceControl->DeviceIOHandles[lPipeNum],
pbuffer,
lbuffersize,
&dwBytesWritten,
NULL);
}
BOOL CDevIO::RawRead(LONG lPipeNum,BYTE *pbuffer,LONG lbuffersize,LONG *plbytesread,LONG lTimeout)
{
DWORD dwBytesRead = 0;
return ReadFile(m_pDeviceControl->DeviceIOHandles[lPipeNum],
pbuffer,
lbuffersize,
&dwBytesRead,
NULL);
}