PDA

View Full Version : problema con ZwQueryDirectoryFile


GordonFreeman
12-10-2005, 21:55
risp. in ita grazie :)

at a certain point it returns STATUS_PENDING,i can retry the call
but it still continues returning that error,forever

i always set to NULL the second parameter,that is supposed to be an OPTIONAL HANDLE to an Event



// hDir is a valid handle to a directory,obtained via CreateFile with
// FILE_FLAG_BACKUP_SEMANTICS
// pNames is a buffer,and uBufSize its size

int ret = NtQueryDirectoryFile(hDir,NULL,NULL,NULL,&IO,pNames,uBufSize,FileNamesInformation,FALSE,NULL,TRUE);


perhaps i have to pass a non-NULL value as the second
parameter, which is an handle to an event,
and then wait for it to happen...but how i create it?

71104
13-10-2005, 14:24
nessuno sa aiutarti perché è una funzione non documentata...
e comunque molti frequentatori di questo forum non sanno nemmeno cosa sia...
insomma, non sei sul forum giusto :p

puoi provare con Google, ma io al posto tuo cercherei piuttosto di capire in che modo la usa il subsystem Win32.