How can I determine the sector size in windows?

后端 未结 8 576
时光取名叫无心
时光取名叫无心 2020-12-22 23:01

How can I determine the Physical Sector Size (e.g. if i have an Advanced Format drive with 4,096 byte sectors rather than the legacy 512 byte sectors) in Wi

8条回答
  •  不知归路
    2020-12-22 23:31

    If you want to have it programmatically, you need to send IOCTL_DISK_GET_DRIVE_GEOMETRY_EX and use Geometry.BytesPerSector from DISK_GEOMETRY_EX structure

提交回复
热议问题