// ntdddisk.h
// CTL_CODE(0x0007, 0x011, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_DISK_CONTROLLER_NUMBER 0x00070044
View the official Windows Driver Kit DDI referenceNo description available.
Retrieves the controller number and disk number for an IDE disk.
None.
None.
The buffer at Irp->AssociatedIrp.SystemBuffer contains the DISK_CONTROLLER_NUMBER data.
Parameters.DeviceIoControl.OutputBufferLength in the IO_STACK_LOCATION structure of the IRP indicates the size, in bytes, of the output buffer, which must be >= sizeof(DISK_CONTROLLER_NUMBER).
The Information field is set to sizeof(DISK_CONTROLLER_NUMBER).
The Status field is set to STATUS_SUCCESS if the operation is successful. One possible status value is STATUS_BUFFER_TOO_SMALL if the output buffer provided by the caller is too small.