home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!munnari.oz.au!uniwa!cujo!ncrpda.curtin.edu.au!rocky.curtin.edu.au!user
- From: peter@cujo.curtin.edu.au (Peter N Lewis)
- Subject: Re: AFP, Files, and Byte Range Locking
- Message-ID: <peter-120193122115@rocky.curtin.edu.au>
- Followup-To: comp.sys.mac.programmer
- Lines: 21
- Sender: news@ncrpda.curtin.edu.au
- Nntp-Posting-Host: ncrpda.curtin.edu.au
- Organization: NCRPDA, Curtin University
- References: <cshotton-110193134404@oac2.hsc.uth.tmc.edu>
- Date: Tue, 12 Jan 1993 04:21:46 GMT
-
- In article <cshotton-110193134404@oac2.hsc.uth.tmc.edu>,
- cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) wrote:
- >
- > I know that byte range locking on files is possible on the Mac when using
- > AppleShare. Is it possible to do it on a stand-alone Mac so that 2
- > applications on the one Mac can read/write the same data file? Is there a
- > high-level API for doing this? All I've been able to find are the control
- > codes and arguments to be sent to the AFP driver, and I'd really rather
- > not... :)
-
- TN186 M.FL.LockRange describes PBLockRange and PBUnlocakRange, and how they
- work on shared and local volumes.
-
- OSErr:=PBLockRange(paramBlock_ParmBlkPtr,async_BOOLEAN);
- OSErr:=PBUnlockRange(paramBlock_ParmBlkPtr,async_BOOLEAN);
-
- Have fun,
- Peter.
-
- _______________________________________________________________________
- Peter N Lewis <peter@cujo.curtin.edu.au> Ph: +61 9 368 2055
-