[PATCH 2/2] ntdll: Set restart_scan on first call to NtQueryDirectoryFile.

Alexandre Julliard julliard at winehq.org
Mon Jul 18 14:44:13 CDT 2011

Grazvydas Ignotas <notasas at gmail.com> writes:

> You mean fake '.' and '..'?


> Do you have any suggestions how to track state between calls?
> I'm thinking about using global structure to track dev_t, ino_t and
> off_t (and maybe handle), and if any of those changes since last exit
> from the function consider it as a first call for this handle.

I don't think you can do that.

> It looks like the best way would be to attach state to handle somehow
> (that would be dropped automatically on CloseHandle), but I failed to
> find a way to do so.

You can't do that either I'm afraid. It's a tricky problem.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list