Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!gatech!akgua!whuxlm!whuxl!houxm!ihnp4!lzaz!mkg From: mkg@lzaz.UUCP (M.GOSNELL) Newsgroups: net.micro.mac Subject: Re: Current volume under SFGetFile ? Message-ID: <555@lzaz.UUCP> Date: Fri, 16-May-86 18:03:58 EDT Article-I.D.: lzaz.555 Posted: Fri May 16 18:03:58 1986 Date-Received: Mon, 19-May-86 01:03:10 EDT References: <57@uva.UUCP> Organization: AT&T Information Systems, Lincroft Lines: 12 Summary: use SFSaveDisk and CurDirStore If you're running MFS, the volume currently being displayed is in the word at $214 in low memory. It's called SFSaveDisk in the suppliments. If you're running HFS, getting the vRefNum is a little more difficult. SFSaveDisk will contain -(vRefNum of the volume) and CurDirStore, a long at $398, contains the WDDirid of the folder that's being displayed. The WDDirid and vRefNum of the volume can be turned into the vRefNum of the folder using PBGetWDInfo. You can force the SF display to start in a given folder by stuffing SFSaveDisk and CurDirStore before calling the SF routine. Marsh Gosnell