No, do not use sequence numbers, please. It's a broken design, IMO; consider how to handle wrapping when the input queue size is unbounded. Instead, place the requets in an ordered queue.
From: Maxim S. Shatskih
Sent: Thursday, January 22, 2009 09:02
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Overlapped IO Sequencing
> When the requests get back to the application they are out of order.
This is normal and by design.
Assign sequence numbers to the requests, and then reassemble the completed requests in the number order.
Maxim S. Shatskih
Windows DDK MVP
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