Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WinUSB驱动,什么 API可取得bulk in pipe中缓存数据的长度

38 views
Skip to first unread message

Dean

unread,
Aug 17, 2009, 4:59:01 AM8/17/09
to
使用WinUSB做为一个USB设备驱动。请问使用什么API可以取得bulk in pipe中缓存数据的长度。

例如:
调用
[DllImport("winusb.dll")]
WinUsb_ReadPipe(IntPtr InterfaceHandle, Byte PipeID,
ref Byte Buffer, UInt32 BufferLength, ref UInt32 LengthTransferred, IntPtr
Overlapped)
后,LengthTransferred的值就是bulk in
pipe中缓存数据的长度,但是调用这个方法的话,会把所有缓存的数据都读取出来了。我想知道如何取得WinUSB bulk in
pipe缓存数据的长度,而不会清空掉缓存的数据。

谢谢。

0 new messages