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.)
Major code
Input buffer
None.
Input buffer length
None.
Output buffer
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).
Status block
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status to the appropriate error condition as a NTSTATUS code.
Requirements
Requirement | Value |
---|---|
Header | ntdddisk.h (include Ntdddisk.h) |