NT (Windows kernel) doesn't care about filenames any more than Linux
NT (Windows kernel) doesn't care about filenames any more than Linux
Posted Mar 30, 2009 15:13 UTC (Mon) by foom (subscriber, #14868)In reply to: NT (Windows kernel) doesn't care about filenames any more than Linux by nye
Parent article: Wheeler: Fixing Unix/Linux/POSIX Filenames
>> Does that mean if you code against the NT API directly, you
can create files foo and FOO in the same directory?
> Yes. This is what the POSIX subsystems for NT do
You can actually do this through the Win32 API: see the FILE_FLAG_POSIX_SEMANTICS flag for CreateFile. However, MS realized this was a security problem, so as of WinXP, this option will in normal circumstances do absolutely nothing. You now have to explicitly enable case-sensitive support on the system for either the "Native" or Win32 APIs to allow it.
(the SFU installer asks if you want to this, but even SFU has no special dispensation)
