Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!iuvax!purdue!decwrl!labrea!polya!kaufman From: kaufman@polya.Stanford.EDU (Marc T. Kaufman) Newsgroups: comp.sys.mac.programmer Subject: Re: Hard Disk Icons Keywords: Disk, Icon Message-ID: <6112@polya.Stanford.EDU> Date: 14 Jan 89 18:37:59 GMT References: <300@puivax.UUCP> Reply-To: kaufman@polya.Stanford.EDU (Marc T. Kaufman) Organization: Stanford University Lines: 17 In article <300@puivax.UUCP> dave@puivax.UUCP (Dave Duffy) writes: .Hello out there. I am in the process of attempting to write a disk .cataloging utility (yes, another one). I would like to be able to display .the icons of any hard disks present on the system, and I just can't figure .out how to get the icon. I know it is somewhere in the driver, but since .the finder is able to display the icon, there must be some method of asking .the driver for the icon. I tried using the Control call documented in IM-4, .but had no success. I know it is described as for the HD-20 only, but I .figured it couldn't hurt. It is also possible I wasn't setting up the .parameter block properly. The csCode = 21 call works for me. Note that this is a CONTROL call, even though you are logically asking for information to be returned (which intuition would suggest should be a STATUS call). Remember to put the DRIVE number in the appropriate field. Marc Kaufman (kaufman@polya.stanford.edu)