GUID_DEVINTERFACE_FLOPPY returns ERROR_NO_MORE_ITEMS

Hi,

To enumerate through the floppy drives available in the system, I have used
GUID_DEVINTERFACE_FLOPPY with “SetupDiGetClassDevs()” and
“SetupDiEnumDeviceInterfaces()”. But SetupDiEnumDeviceInterfaces() returns
with the error
ERROR_NO_MORE_ITEMS. But the code works fine for GUID_DEVINTERFACE_CDROM and
GUID_DEVINTERFACE_DISK. I am working on Windows XP checked build
environment.

What could be the reason?

Thanks,
Lloyd


Scanned and protected by Email scanner

Lloyd wrote:

But SetupDiEnumDeviceInterfaces() returns with the error
ERROR_NO_MORE_ITEMS. But the code works fine for
GUID_DEVINTERFACE_CDROM and GUID_DEVINTERFACE_DISK.
I am working on Windows XP checked build environment. What
could be the reason?

You have no floppy drives? Or you used the wrong GUID?

> What could be the reason? ,

The very first reason that gets into one head is that you run your test on the machine without floppy drive, which happens to be a “legacy” feature that is not present on most recently-produced machines …

Anton Bassov

Yes, I do have floppy drive and disk. I have tested this on a virtual
machine (VMWare) with virtual floppy disk. The GUID that I am using is
GUID_DEVINTERFACE_FLOPPY. I read in a “Code project” page that
GUID_DEVINTERFACE_FLOPPY wont work with legacy drives on winXP and Win2000,
But without any explanation!! Anybody have some idea?

You have no floppy drives? Or you used the wrong GUID?

Thanks,
Lloyd


Scanned and protected by Email scanner