From: samaya.balasubramanian on
Hi all,
I have a problem in reading the data packets from USB.
I have got the USB from the Vendor(IXXAT) , and implemented the code to
return handle for USB using CreateFile().
it is returning the Handle and Device path correctly but the BytesRead
variable in ReadFile function is always zero. Can any one help me?
I think i have almost reached the endpoint in reading the data.
Thanks in advance
samaya

From: Tim Roberts on
samaya.balasubramanian(a)honeywell.com wrote:
>
>I have a problem in reading the data packets from USB.
>I have got the USB from the Vendor(IXXAT) , and implemented the code to
>return handle for USB using CreateFile().
>it is returning the Handle and Device path correctly but the BytesRead
>variable in ReadFile function is always zero. Can any one help me?
>I think i have almost reached the endpoint in reading the data.

Are you sure your vendor's driver supports the ReadFile function? It's
possible they expect you to use an ioctl to read the data.
--
- Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.
From: Maxim S. Shatskih on
Fill Irp->IoStatus.Information to the real number of bytes read before
calling IoCompleteRequest.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim(a)storagecraft.com
http://www.storagecraft.com

<samaya.balasubramanian(a)honeywell.com> wrote in message
news:1141389530.574586.76030(a)e56g2000cwe.googlegroups.com...
> Hi all,
> I have a problem in reading the data packets from USB.
> I have got the USB from the Vendor(IXXAT) , and implemented the code to
> return handle for USB using CreateFile().
> it is returning the Handle and Device path correctly but the BytesRead
> variable in ReadFile function is always zero. Can any one help me?
> I think i have almost reached the endpoint in reading the data.
> Thanks in advance
> samaya
>