Knowing when all volumes of HD is ready

Hello folks,

I’m developing a upper disk filter that scans all the volumes of HD (partitions) to see which has more free space, using the PNPNOTIFY_DEVICE_INTERFACE_INCLUDE_EXISTING_INTERFACES . My problem is knowing when I checked all volumes to send the information down.

Today, I stop to check when I get a notification of a CDROM volume , because the CDROM starts after all HDs. But if the computer has no CDROM, the driver doesn’t work.

Anyone have any clue how I do it?

Thanks

You will get a notification for all interfaces. What does that mean “knowing
when I checked all volumes to send the information down”?