delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2003/01/21/12:14:08

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
From: "Gerald S. Williams" <gsw AT agere DOT com>
To: <cygwin-developers AT cygwin DOT com>
Subject: RE: True case-sensitive filenames
Date: Tue, 21 Jan 2003 12:14:02 -0500
Message-ID: <GBEGLOMMCLDACBPKDIHFEEAEDBAA.gsw@agere.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal
In-Reply-To: <GBEGLOMMCLDACBPKDIHFEEADDBAA.gsw@agere.com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019