Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!apple!oliveb!amdahl!rtech!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: File Mgr inconsistancies Message-ID: <9322@hoptoad.uucp> Date: 17 Dec 89 23:33:23 GMT References: <3345@hub.UUCP> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 30 In article <7463@hubcap.clemson.edu> mikeoro@hubcap.clemson.edu (Michael K O'Rourke) writes: >>>Does anyone know how to get a drive number from a volume reference number? From article <9311@hoptoad.uucp>, by tim@hoptoad.uucp (Tim Maroney): >> PBHGetVInfo returns the drive number in the field ioVDrvInfo. In article <3345@hub.UUCP> 6500stom@hub.UUCP writes: >That's all jolly good but what are drive numbers? Is a drive number >the same as the volume index number that you can use in PBHGetVInfo? A drive number identifies a disk drive connected to the Mac. There is a system data structure known as the drive queue which keeps track of various things about the drives, like whether they are ejectable and whether they currently have a disk in them. There's no direct reference to the volume index, which has more to do with what order volumes are mounted in (and so, where they appear in the volume control block queue). >Also, what is a "pathRefNum" (IV-107) in GetVRefNum? Is that a file >reference? What can't they keep things simple? Yes, it's the same as a reference number that you get from PBOpen etc. Note that the same syntax ("path reference number") is used in the other high-level File Manager call descriptions, such as FSOpen. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com These are not my opinions, those of my ex-employers, my old schools, my relatives, my friends, or really any rational person whatsoever.