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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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>
