Article View: borland.public.delphi.nativeapi
Article #100Lock a File
From: DP
Date: Fri, 23 Jan 2004 13:16
Date: Fri, 23 Jan 2004 13:16
13 lines
1093 bytes
1093 bytes
Hi, How do I Lock a file so that second user trying to open the file is just able to read the contents. The first user needs to be able to read and write both. I have been trying to play with CreateFile API and its flags and somehow it seems to fail when an attempt is made to open a same file across the network by two users. Any ideas on how to achieve this. Thanks DP
Technical Details
Message-ID:
<Xns94795E615C598ramneekdevindercomca@207.105.83.66>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94dd,31daf11ccc049e8b,start X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2004-01-23 06:19:13 PST Newsgroups: borland.public.delphi.nativeapi Subject: Lock a File From: DP <ramneek_devinder@comcast.net> Message-ID: <Xns94795E615C598ramneekdevindercomca@207.105.83.66> User-Agent: Xnews/5.04.25 NNTP-Posting-Host: 205.181.245.38 Date: 23 Jan 2004 06:16:17 -0700 X-Trace: newsgroups.borland.com 1074867377 205.181.245.38 (23 Jan 2004 06:16:17 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail