From: Johannes Sixt Date: Thu, 26 Mar 2009 07:15:49 GMT Subject: Re: Implementing stat() with FindFirstFile() Message-ID: <49CB2BA5.1070100@viscovery.net> In-Reply-To: <20090324215416.GB27249@jeeves.jpl.local> Magnus Bäck schrieb: > From what I gather the problematic conversion takes place in the Win32 > layer, in which case we might be able to call the ZwQueryDirectoryFile() > kernel routine directly via ntdll.dll to obtain the file times straight > from the file system. Has anyone explored that path, and would it be > acceptable to make such a change? It depends. The disadvantages are that this function is only available on Windows XP and later and that it is not present in the header files of MinGW gcc. It's on you to prove that there are advantages that clearly outweigh these disadvantages. -- Hannes