physical disk ID from Volume Handle

Hi,
I’m developing a mini filter and I’m trying to identify the physical disk that each mounted volume belong to.
I tried to use FltGetDiskDeviceObject on the volume handle I got at the Intance setup callback. But I saw that two volumes that reside on the same harddisk got different DeviceObjects.
What is the correct way to map between volumes and physical disks?

Regards,
Sagi

Hi Sagi,

I think IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS should do the trick.

Regards,
Alex.
This posting is provided “AS IS” with no warranties, and confers no rights.