Path: utzoo!attcan!uunet!husc6!mailrus!cornell!rochester!pt.cs.cmu.edu!cadre!km
From: km@cadre.dsl.PITTSBURGH.EDU (Ken Mitchum)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Anyone know anything about CurDirStore ?
Message-ID: <1822@cadre.dsl.PITTSBURGH.EDU>
Date: 28 Nov 88 16:38:33 GMT
References: <24728@cs.tcd.ie>
Reply-To: km@cadre.dsl.pittsburgh.edu (Ken Mitchum)
Organization: Decision Systems Lab., Univ. of Pittsburgh, PA.
Lines: 19

CurDirStore (Inside Mac vol IV p 72) contains the directory ID of the
the last opened directory. This is NOT a working directory number. You
can obtain the current working directory number by using CurDirStore
plus SFSaveDisk, which contains the negative of the volume reference
number that is current. This also is a true volume reference number,
NOT a working directory number. CurDirStore is a long, while SFSaveDisk
is an int. You can use both as parameters in parameter blocks to various
routines, or use a routine to obtain the working directory reference number
given the volume and directory ID.

These two globals are directly manipulated by the Standard File package
routines. You can easily find out what volume and directory were last
set by the SF dialogs, or change the globals to force a starting
volume and directory before an SF dialog is displayed.

 Ken Mitchum KY3B
 Decision Systems Labs
 University of Pittsburgh
 km@cadre.dsl.pittsburgh.edu