IOCTL_DISK_GET_PARTITION_INFO IOCTL (ntdddisk.h)
Returns information about the type, size, and nature of a disk partition. (Floppy drivers need not handle this request.)
Input buffer length
The driver returns the PARTITION_INFORMATION data in the buffer at Irp->AssociatedIrp.SystemBuffer.
Output buffer length
Parameters.DeviceIoControl.OutputBufferLength in the I/O stack location of the IRP indicates the size, in bytes, of the buffer, which must be >= sizeof(PARTITION_INFORMATION).
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status to the appropriate error condition as a NTSTATUS code.
|Header||ntdddisk.h (include Ntdddisk.h)|