IOCTL_DISK_CONTROLLER_NUMBER IOCTL

Retrieves the controller number and disk number for an IDE disk.

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

None.

Input Buffer Length

None.

Output Buffer

The buffer at Irp->AssociatedIrp.SystemBuffer contains the DISK_CONTROLLER_NUMBER data.

Output Buffer Length

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).

Status Block

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.

Requirements

   
Header ntdddisk.h (include Ntdddisk.h)

See Also

DISK_CONTROLLER_NUMBER