home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!think.com!yale.edu!spool.mu.edu!umn.edu!umeecs!nuntius
- From: The Mad Hacker <Mad@HackersRus>
- Subject: Re: Telling the volume type
- Message-ID: <1992Dec27.224133.14830@zip.eecs.umich.edu>
- Sender: news@zip.eecs.umich.edu (Mr. News)
- Organization: The Society for the Advancement of Hacking
- X-Useragent: Nuntius v1.1
- References: <1992Dec24.150941.25299@infodev.cam.ac.uk>
- Date: Sun, 27 Dec 1992 22:41:33 GMT
- Lines: 21
-
- To get more info on a volume, use the PBHGetVInfo function. You can use
- the
- ioVDRefNum field to get the driver id for the device. Compare: the AFS
- driver
- is always -42, SCSI devices are within a certain ranges, and floppies
- (the
- .Sony driver) is constant also. Do a switch on the driver RefNum, and
- you should
- be set.
- More daring, however, is to use the slightly documented feature from IM
- IV (the
- Disk Driver chapter), to get the physical drive icon from the driver
- itself.
- Although it says it only works for the HD20, I believe most if not all
- drivers
- accept the control param. (I have used the first, but not the second
- method, and
- it seems to work).
-
- fprefect@engin.umich.edu
- Matt Slot, CAEN Mac-Systems
-