This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
RE: Re[2]: setup.exe and inuse files for X
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- To: "Pavel Tsekov" <ptsekov at syntrex dot com>
- Cc: <cygwin-apps at cygwin dot com>,<cygwin-xfree at sources dot redhat dot com>
- Date: Thu, 16 May 2002 18:59:27 +1000
- Subject: RE: Re[2]: setup.exe and inuse files for X
Does this work on FAT too?
Rob
> -----Original Message-----
> From: Pavel Tsekov [mailto:ptsekov@syntrex.com]
> Sent: Thursday, May 16, 2002 6:33 PM
Ok here is how to fix this issues I've just tried it on my XP Home and
it worked fine.
HANDLE h = CreateFile("test.c",
DELETE,
0, // We want it all :)
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_READONLY /*to be compatible*/
| FILE_FLAG_DELETE_ON_CLOSE, NULL);
CloseHandle (h);