Hidden partition information  
Author Message
UniqueDisplayName-Adam





PostPosted: Visual C++ General, Hidden partition information Top

I am attempting to get partition information for a hidden partition (always the last partition on the first disk). I need to return the label for the partition. The partition shows in Disk Management with the label so there should be a definite way to get this information within Windows. I am just trying find how. Is there a C++ to do this.

Thanks.



Visual C++13  
 
 
MVP User





PostPosted: Visual C++ General, Hidden partition information Top

There's not a nice API but you can use DeviceIOControl() with the IOCTL_DISK_* commands. IOCTL_DISK_GET_DRIVE_GEOMETRY, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX and IOCTL_DISK_GET_PARTITION_INFO should get you what you want. -- http://www.chrisnet.net/code.htm http://www.avdevforum.com/AV
 
 
Sheng Jiang





PostPosted: Visual C++ General, Hidden partition information Top

You can ask it in the Windows SDK forum.