[ntdev] Problem with IoBuildSynchronousFsdRequest in filter driver

Thank you Anton Bassov…
I’m sorry,I made a stupid mistake…-_-!

----- ԭʼ?ʼ? ----
???ˣ? “xxxxx@hotmail.com
?ռ??ˣ? Windows System Software Devs Interest List
?ѷ??ͣ? 2007/4/7(???), ???6:26:01
???⣺ RE:[ntdev] Problem with IoBuildSynchronousFsdRequest in filter driver

> StartingOffset = &pIrpStackLocation->Parameters.Write.ByteOffset;

Don’t you see a bug in the above line??? It is pretty bizzare that your code does not crash right on the spot…

Therefore, ‘StartingOffset’ parameter that you specify in IoBuildSynchronousFsdRequest() call is just invalid. When you pass IRP down the stack, lower-level drivers get “confused”…

Anton Bassov


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

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

___________________________________________________________
?Ż???-3.5G???20M???
http://cn.mail.yahoo.com/