Re: [python-win32] DeviceIOControl using IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS fails with 'Incorrect function.'

2021-02-10 Thread Eryk Sun
On 2/9/21, Doug Campbell wrote: > > Again, you expand my knowledge! It seems so obvious now after reading what > you wrote that I would not be able to get volume disk extents for a physical > partition but yet this is what I wanted to do because I was attempting to > find out the partition's offs

Re: [python-win32] DeviceIOControl using IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS fails with 'Incorrect function.'

2021-02-10 Thread Doug Campbell
Thanks again, Eryk. I was able to play around today with the code you provided below and was able to tweak it to list the volumes, find the one that matched the disk/partition combination I was searching for and return its offset on the disk. Very helpful! Fro