1
Software / ReadFile() and USBScan
« on: May 11, 2005, 03:55:54 AM »
Hi,
I am facing a problem in my WIA minidriver Code where the ReadFile() API is not reading the amount of data requested. WriteFile() call is perfectly fine. Our aim is to get the ststus from the device prior to start the scan where we request 30 BYTES but getting only 8 BYTES but ther return value as well GetLastError() returns no error. But after that if we use ReadFile() always it fails and we will not be able to communicate with the device. Please let me know how can I rectify this problem.
I am facing a problem in my WIA minidriver Code where the ReadFile() API is not reading the amount of data requested. WriteFile() call is perfectly fine. Our aim is to get the ststus from the device prior to start the scan where we request 30 BYTES but getting only 8 BYTES but ther return value as well GetLastError() returns no error. But after that if we use ReadFile() always it fails and we will not be able to communicate with the device. Please let me know how can I rectify this problem.