[net.micro.mac] How do you find the startup drive's vRefNum?

abe@pucc-j (Vic Abell) (01/04/86)

Can anyone suggest a way to determine the startup drive's identity?
The File Manager Programmer's Guide in IM warns you not to unmount
the startup drive, but it doesn't tell you how to identify it.  I
know about GetVol, but it reports the default drive, and that may
not always be the startup.  Currently I am using GetVInfo for both
drives and avoiding unmount on either, but it seems to me that there
ought to be a better way.

Vic Abell, abe@asc.purdue.edu or ...!pur-ee!pucc-j!abe

stew@harvard.UUCP (Stew Rubenstein) (01/04/86)

In article <693@pucc-j> abe@pucc-j (Vic Abell) writes:
>Can anyone suggest a way to determine the startup drive's identity?

Check out the low memory global, BootDrive, at $210.  It is
the vRefNum of the drive with the system file, I believe.

Stew