IOCTL_DISK_GET_PARTITION_INFO_EX control code
Retrieves extended information about the type, size, and nature of a disk partition.
To perform this operation, call the DeviceIoControl function with the following parameters.
BOOL DeviceIoControl(
(HANDLE) hDevice, // handle to a partition
IOCTL_DISK_GET_PARTITION_INFO_EX, // dwIoControlCode
NULL, // lpInBuffer
0, // nInBufferSize
(LPVOID) lpOutBuffer, // output buffer
(DWORD) nOutBufferSize, // size of output buffer
(LPDWORD) lpBytesReturned, // number of bytes returned
(LPOVERLAPPED) lpOverlapped // OVERLAPPED structure
);
Parameters
hDevice
A handle to the disk device from which partition information is retrieved. To retrieve a device handle, call the CreateFile function.
dwIoControlCode
The control code for the operation. Use IOCTL_DISK_GET_PARTITION_INFO_EX for this operation.
获取GPT 分区 信息
最新推荐文章于 2023-05-19 22:27:00 发布