How to translate a PSP_DEVICE_INTERFACE_DETAIL_DATA struct to a drive letter

I’m opening a handle (to issues ioctls) to my Disk volume filter driver via
the PSP_DEVICE_INTERFACE_DETAIL_DATA with the SetupDixxx calls. This is
done in user mode.

How can I get the drive letter which is mapped to my volume filter via my
handle (PSP_DEVICE_INTERFACE_DETAIL_DATA struct)? If that’s not possible
then what is the best method for getting the drive letter of the volume?

Thanks!

> handle (PSP_DEVICE_INTERFACE_DETAIL_DATA struct)? If that’s not possible

then what is the best method for getting the drive letter of the volume?

Using the MountMgr API’s - FindFirstVolume and friends.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com