[pso] Tema 3 Windows - ZwReadFile/ZwWriteFile

Razvan Hobeanu pso@cursuri.cs.pub.ro
Mon, 20 Jun 2005 13:49:30 -0700 (PDT)


> Salut,
> 
> Din cand in cand, apelul ZwWriteFile esueaza cu
> STATUS_PENDING. In DDK
> scrie ca pot sa ma sincronizez pe HANDLE-ul de
> fisier. Am incercat
> acest lucru cu ObReferenceObjectByHandle insa
> KeWaitForSingleObject mi
> asteapta la infinit. Am inclus si flagul SYNCHRONIZE
> la deschiderea
> fisierului. Vreo idee?

Incearca deschderea cu FILE_SYNCHRONOUS_IO_NONALERT.

Razvan


		
__________________________________ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html