Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: comp.sys.mac.programmer Subject: Controlling a disk drive Message-ID: <1990Aug17.141156.7785@eng.umd.edu> Date: 17 Aug 90 14:11:56 GMT References: <1517@ntmtv.UUCP> <9794@goofy.Apple.COM> Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 18 Here's a related question: How can I grab control of a specific disk drive? What I want to do is I want to write raw data to the disk drive (like Apple Diskmaker does), but I have to make sure that the system doesn't eject the disk I have in there, put up a disk switch alert, and have an unsuspecting user put in a disk only for my program (once it gets control) to write all over their disk. Also, it would be nice if I could ask the user to switch disks-- if I want to unpack a compressed disk image from a disk to a different disk in the same drive, for instance. (Right now what I do is never call Get/Wait NextEvent, don't use any resources in the critical section, and don't allow single-drive use) Also, is there any way I can get a descriptive name for a specific floppy drive (for instance 1: Bottom drive 2: Top drive 3: External drive, but without hard-coding that). -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu ][, ][+, ///, ///+, //e, //c, IIGS, //c+ --- Any questions?