News for hackers. Stuff that matters.
Re:Bugs Rust Won't Catch by masklinn on Wednesday April 29, 2026 @10:05AM (#47948657)
> AFAIK you can't open directories on Windows.

You can but you have to go through the lower level API: NtCreateFile can open a directory, and you can pass in a RootDirectory handle to following calls to make them handle-relative.

Re:Bugs Rust Won't Catch by ChrisSD on Wednesday April 29, 2026 @03:15PM (#47952998)
You can open directories using high level win32 APIs. What you need NtCreateFile for is opening files relative to an open directory.