I think you should avoid the GetFileAttributes call. It adds extra steps (including potentially an extra case-insensitive lookup), and the file attributes could change between that call and NtDeleteFile.
It seems like it should be possible to do this without forcing ntdll to search for the file multiple times.
Vincent Povirk
On Thu, Aug 28, 2008 at 8:57 AM, Jeff Zaroyko jeffzaroyko@gmail.com wrote:
combining everything in one patch as Paul Vriens suggested, probably makes more sense.
-Jeff