home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14246 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!darwin.sura.net!haven.umd.edu!ni.umd.edu!zben-mac-ii.umd.edu!user
  3. From: zben@ni.umd.edu (Charles B. Cranston)
  4. Subject: Re: converting the vRefNum and DirID to just a vRefNum...
  5. Message-ID: <zben-190892212657@zben-mac-ii.umd.edu>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: usenet@ni.umd.edu (USENET News System)
  8. Nntp-Posting-Host: zben-mac-ii.umd.edu
  9. Organization: UM Home for the Terminally Analytical
  10. References: <1992Aug19.182018.29206@nntp.uoregon.edu> <71403@apple.Apple.COM>
  11. Distribution: usa
  12. Date: Thu, 20 Aug 1992 01:51:38 GMT
  13. Lines: 19
  14.  
  15. eric_gorr@coglab_psych.uoregon.edu (Eric Gorr) writes:
  16.  
  17. > I have a vRefNum and a DirID and I want to use these two numbers so that I
  18. > can have just a vRefNum to be used by SetVol.  
  19.  
  20. In article <71403@apple.Apple.COM>, mlanett@Apple.COM (Mark Lanett) wrote:
  21.  
  22. > HSetVol (volName, vRefNum, dirID)
  23.  
  24. No, you don't want to do this, please read Technical Note 140,
  25. "Why PBHSetVol is Dangerous".  You want to either create a Working
  26. Directory and pass it to SetVol or do what Keith Rollin suggested
  27. and only change the current volume temporarily, so no other piece
  28. of software can possibly do a GetVol and get incorrect data.
  29.  
  30. Or maybe this is obsolete information since Desk Accessories are
  31. now run in their own partition (under MF or System 7)...
  32.  
  33. zben@ni.umd.edu     -KA3ZDF
  34.