This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: True case-sensitive filenames


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]