ReadFile asynchronous read operation,but return 0,and getlasterror=ERROR_IO_PENDING

Hi,my dear friends.

I modify wdk’s usbsamp ,and the application program buffer equal to the driver’s MaximumTransferSize.my application program’s use ReadFile asynchronous read operation,but return 0,and getlasterror=ERROR_IO_PENDING,but i use GetOverlappedResult function can get the right return size.

why my driver return STATUS_PENDING? thank you.

KMDF marks all IO as pending

d


From: xxxxx@lists.osr.com [xxxxx@lists.osr.com] on behalf of zhonghong200@163.com [zhonghong200@163.com]
Sent: Friday, August 27, 2010 8:46 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] ReadFile asynchronous read operation,but return 0,and getlasterror=ERROR_IO_PENDING

Hi,my dear friends.

I modify wdk’s usbsamp ,and the application program buffer equal to the driver’s MaximumTransferSize.my application program’s use ReadFile asynchronous read operation,but return 0,and getlasterror=ERROR_IO_PENDING,but i use GetOverlappedResult function can get the right return size.

why my driver return STATUS_PENDING? thank you.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer