True case-sensitive filenames

Gerald S. Williams gsw@agere.com
Tue Jan 21 17:14:00 GMT 2003


I wrote:
> Larry Hall wrote:
> > Interested in creating a Windows filesystem filter driver that would 
> > permit files with the names com, aux, and prn too? ;-)  OK, I know
> > that would be asking too much! :-)
> 
> You can do this using the Native API (I just checked by
> creating "prn" and "PRN").

The following also works:

    h = CreateFileW(L"\\\\?\\C:\\full\\path\\to\\prn",
        GENERIC_READ, FILE_SHARE_DELETE, NULL, CREATE_ALWAYS,
        FILE_FLAG_POSIX_SEMANTICS, 0);

-Jerry



More information about the Cygwin-developers mailing list