This saves a call to stat().
Can you add a comment indicating what the first two flags are used for? They aren't very common, so it might help someone in the future understand what's going on.
Also maybe a top-level comment indicating why we're doing things this way instead of the old way.
Don't need to re-upload, lgtm already.
|265 ↗||(On Diff #118428)|
Zach's right that this is likely a tad faster, but it's also a little less clear. How about a comment to make it point out that we're using CreateFileW to mark the file/direction for deletion?