delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-apps-help AT cygwin DOT com; run by ezmlm |
Sender: | cygwin-apps-owner AT cygwin DOT com |
List-Subscribe: | <mailto:cygwin-apps-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin-apps/> |
List-Post: | <mailto:cygwin-apps AT cygwin DOT com> |
List-Help: | <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs> |
Mail-Followup-To: | cygwin-apps AT cygwin DOT com |
Delivered-To: | mailing list cygwin-apps AT cygwin DOT com |
Date: | Thu, 16 May 2002 11:06:49 +0200 |
From: | Pavel Tsekov <ptsekov AT syntrex DOT com> |
Reply-To: | Pavel Tsekov <ptsekov AT syntrex DOT com> |
Organization: | Syntrex, Inc. |
X-Priority: | 3 (Normal) |
Message-ID: | <1276238290.20020516110649@syntrex.com> |
To: | "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au> |
CC: | cygwin-apps AT cygwin DOT com, cygwin-xfree AT sources DOT redhat DOT com |
Subject: | Re[4]: setup.exe and inuse files for X |
In-Reply-To: | <FC169E059D1A0442A04C40F86D9BA7600C60D4@itdomain003.itdomain.net.au> |
References: | <FC169E059D1A0442A04C40F86D9BA7600C60D4 AT itdomain003 DOT itdomain DOT net DOT au> |
MIME-Version: | 1.0 |
Hello Robert, Thursday, May 16, 2002, 10:59:27 AM, you wrote: RC> Does this work on FAT too? I don't know - its not clear from the documentation. Someone has to test it on FAT. However this combined with an an call to SetFileAttributes () before it should be sufficient. Btw the snippet below is wrong - FILE_ATTRIBUTES_READONLY should be removed from the call. I type too fast :( >> -----Original Message----- >> From: Pavel Tsekov [mailto:ptsekov AT syntrex DOT com] >> Sent: Thursday, May 16, 2002 6:33 PM RC> Ok here is how to fix this issues I've just tried it on my XP Home and RC> it worked fine. RC> HANDLE h = CreateFile("test.c", RC> DELETE, RC> 0, // We want it all :) RC> NULL, RC> OPEN_EXISTING, RC> FILE_ATTRIBUTE_READONLY /*to be compatible*/ | Bah, this here is an error ----------+ RC> | FILE_FLAG_DELETE_ON_CLOSE, NULL); RC> CloseHandle (h);
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |