[pso] [tema3 windows] Intrebari

Florin Antonescu florinantonescu at yahoo.com
Thu May 8 10:31:21 EEST 2008


As avea cateva intrebari legate de tema3, mentionez ca operatiile le fac BUFFERD_IO:
1. este normal ca atunci cand incerc sa afisez continutul lui irp->AssociatedIrp.SystemBuffer (DbgPrint("%c ", ((char*)irp->AssociatedIrp.SystemBuffer)[i]);) sa imi dea blue screen?
2. campul ByteOffset din IO_STACK_LOCATION in cazul unui write/read este echivalent cu bi_sector din Linux sau este pozitia de inceput din SystemBuffer?
3. am incercat sa duplic IRP-ul de write prin apelarea de doua ori a IoBuildSynchronousFsdRequest caruia i-am dat ca parametii campurile din IRP-ul primit (irp->AssociatedIrp.SystemBuffer, Length, ByteOffset), dupa care am apelat IoCallDriver, KeWaitForSingleObject si IoCompleteRequest. In test apare o eroare (WriteFile returneaza false, eroare este 1450) si dupa un scurt timp apare blue screen cu mesajul: DRIVER LEFT LOCKED PAGES IN MEMORY. Ce gresesc?


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080508/df71d1f0/attachment.htm 


More information about the pso mailing list