views:

35

answers:

1

Hi..

please let me know what are the devices wil be listed using the below code

guid = GUID_DEVINTERFACE_VOLUME;

// Get device Information handle for Volume interface
hDevInfo = SetupDiGetClassDevs( &guid, NULL, NULL,
DIGCF_DEVICEINTERFACE | DIGCF_PRESENT );

Thank you

+1  A: 

All devices that are present in the system that have enabled an interface from the storage volume device interface class.

You can find more information here

David Sykes
"Enabled"? Are you sure about that? Will it exclude devices whose SP_DEVICE_INTERFACE_DATA.Flags do not contain SPINT_ACTIVE ?
MSalters
Example 4 suggests that would be the case
David Sykes