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
Code:
// 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?