home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21247 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.4 KB  |  35 lines

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