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 Nov 15, 2009 0:06 UTC (Sun) by yuhong (guest, #57183)In reply to: NT (Windows kernel) doesn't care about filenames any more than Linux by foom
Parent article: Wheeler: Fixing Unix/Linux/POSIX Filenames
Another trick you can use with CreateFile is to start the filename with \\.\.
If that is done, the only processing done on the filename before CreateFile
calls NtCreateFile with the name is that \\.\ is replace with \??\, which is
an alias of \DosDevices\.
If that is done, the only processing done on the filename before CreateFile
calls NtCreateFile with the name is that \\.\ is replace with \??\, which is
an alias of \DosDevices\.
