You can use the CreateFile function to open a physical disk drive or a volume. The function returns a handle that can be used with the DeviceIoControl function. This enables you to access the disk partition table。
我们可以使用CreateFile 来访问物理磁盘,并返回物理磁盘的句柄,可以在DeviceIoControl 函数中使用该句柄。这使我们可以去访问磁盘的分区表。