This is a HUGE problem, norman.

What's worse, XP Pro and XP home do NOT treat discs the same way, so if you have code that scans for drives, and ignores empties, it is likely to work properly on XP Home, but not the same on pro, where it will inform the user that the drive is "empty".

We found and revised some code that used the kernel to do this, but it the behavior was not consistent between xp pro/home.

I'll see if I can dig it up, but we ended up pulling drive scanning out entirely and just asking the user to locate the media/drive they wanted to use...pretty much like the majority of Win32 apps do :)

-K

On Apr 15, 2006, at 8:35 PM, Norman Palardy wrote:

On OS X these count actual mounted volumes.
On Windows this seems to count "drives".
I have a PC with 2 hard drives and a multi-port media reader, a DVD drive and a CD. Except for the 2 hard drives none of the other devices has a CD, DVD or other media cards in them.

A loop like

        dim i as integer
        dim limit as integer
                
        limit = VolumeCount - 1

        for i = 0 to limit
        
                listbox1.addrow volumes(i).absolutePath

        next

lists only the actual volumes on OS X

On Windows I get and entry for every device regardless of whether it has media in it or not.
Is that "correct" ?
Seems a rather huge distinction between the two platforms.
That's one issue.

However, on Windows IF I happen to hold a Folderitem for each volume and a person ejects a volume, how do I test the folderItem to see if it is valid any longer and NOT get the "There is no disk in the drive Abort Retry Ignore" dialog ?

I've tried FoldereItem.exists but that seems to prompt for a disk when the drive is empty which is what I really want to avoid.
Is there any way to tell if a Windows "Volume" has media in it ?

Norman Palardy
OS X 10.4.6 / MacBook Pro 2.16Ghz MHz / 1Gb RAM



_______________________________________________
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>

_______________________________________________
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>

Reply via email to