In the simple case where the volume resides on a single physical drive, the
physical drive number is available in diskExtents. ... We can use Setup APIs to
get the list of disks ie., devices in the system implementing
GUID_DEVINTERFACE_DISK . ... #include <Windows.h> #include <Setupapi.h>
#include <Ntddstor.h> #pragma comment( lib, "setupapi.lib" ) #include ... You're
supposed to use SetupApi in windows xp and later, and no longer use the
registry, which was the way to do it in ...