Article View: borland.public.cppbuilder.nativeapi
Article #14678Re: Lock File
From: Remy Lebeau (TeamB)
Date: Wed, 06 Aug 2003 16:48
Date: Wed, 06 Aug 2003 16:48
14 lines
1476 bytes
1476 bytes
"JD" <nospam@nospam.com> wrote in message news:3f310f5c$1@newsgroups.borland.com... > I'd like to lock a file from any access by other users > so I can modify it and then unlock it. Simply open the file with exclusive access rights. That way, you can't open the file if someone else already has it open, and nobody else can open the file if you already have it opened. The alternative is to use LockFile/Ex() to lock just the portion of the file are you actually modifying. Gambit
Technical Details
Message-ID:
<3f312fd7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f310f5c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,98f8eb89363be2d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-06 10:10:40 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f310f5c$1@newsgroups.borland.com> Subject: Re: Lock File Date: Wed, 6 Aug 2003 09:48:18 -0700 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f312fd7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060188119 207.175.226.26 (6 Aug 2003 09:41:59 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail