| To: | "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Finding Ejectable Volumes. |
| From: | "Dennis Birch" <dennisbirch at gmail dot com> |
| Date: | Mon, 29 May 2006 13:58:15 -0700 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ob83Y8JQXHntEz97updwEx+Odra9TzpMIAN1rrI5Pw+VJXthXq5ot7sFglMwDCbko2DAbG8tAnCgPNgwY/MyXNRZhAyiGlpaC2h3kiiRECVnXYf/SaOqmcadi9LuNxSeYfkLp1aJ95okddd+IgG/cwHKhvp7piBGAPc3g/r0bQY= |
| References: | <20060523161033 dot 17E1D1296E9A at lists dot realsoftware dot com> <27EF305E-4049-497F-B82D-1B9753DD4D81 at aztech4mac dot com> <0E37A913-84EF-4342-8887-14E32DF7B912 at declareSub dot com> <fed2e2560605291252w56d99e65w721f1cf7258ee9dc at mail dot gmail dot com> |
I should add that the IsEjectable function also works correctly with volumes mounted from disk images, and with network volumes. On 5/29/06, Dennis Birch <dennisbirch at gmail dot com> wrote: I implemented the suggested declares solution in a module and it works great for CD-ROMs and USB devices I've mounted. However my external FireWire drive (which can be safely unmounted in the Finder) does not show as being ejectable. Anybody happen to know why that might be the case? On 5/23/06, Charles Yeomans <charles at declaresub dot com> wrote: > This information is not hard to retrieve for MacOS. You call > PBHGetVolParmsSync. You test the extended attributes field of the > GetVolParmsInfoBuffer struct passed. The volume is ejectable when > bit 0 is set. The Volumes section of chapter 4 of my declares book > has an example that calls PBHGetVolParmsSync. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Aliased CurveShapes, Juan Salvatierra |
|---|---|
| Next by Date: | listbox arrow keys not working, Long Huynh |
| Previous by Thread: | Re: Finding Ejectable Volumes., Dennis Birch |
| Next by Thread: | Re: Finding Ejectable Volumes., Charles Yeomans |
| Indexes: | [Date] [Thread] [Top] [All Lists] |