Its not what I mean. I mean does it read MBR or obtains info from another source.
I'm assuming it reads the GPT. If the first logical block (LBA 0, the Protected MBR) does not contain a partition type of 0xEE (obtained from reading the 1-byte offset at 0x04), it knows it is reading a legacy device and uses the MBR instead.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
It still does not clear if it reads from MBR(GUID) or somewhere else. If we persume it reads info from MBR, we should look for a more reliable source of disk info.The difference between IOCTL_DISK_GET_DRIVE_GEOMETRY_EX and the older IOCTL_DISK_GET_DRIVE_GEOMETRY request is that IOCTL_DISK_GET_DRIVE_GEOMETRY_EX can retrieve information from both Master Boot Record (MBR) and GUID Partition Table (GPT)-type partitioned media, whereas IOCTL_DISK_GET_DRIVE_GEOMETRY can only read MBR-style media.