Win32 CreateFile on a directory needs FILE_FLAG_BACKUP_SEMANTICS, so such opens failed with ERROR_ACCESS_DENIED. FILE_NON_DIRECTORY_FILE still refuses. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>