DISK_CONTROLLER_NUMBER structure (ntdddisk.h)

DISK_CONTROLLER_NUMBER is used with IOCTL_DISK_CONTROLLER_NUMBER to retrieve the controller number and disk number of an IDE disk.

Syntax

typedef struct _DISK_CONTROLLER_NUMBER {
  ULONG ControllerNumber;
  ULONG DiskNumber;
} DISK_CONTROLLER_NUMBER, *PDISK_CONTROLLER_NUMBER;

Members

ControllerNumber

Contains the number of the IDE controller for the disk.

DiskNumber

Contains the number of the disk.

Remarks

After DISK_CONTROLLER_NUMBER receives the controller number and the disk number, these values can be used to determine whether the disk is attached to the primary or to the secondary IDE controller.

Requirements

Requirement Value
Header ntdddisk.h (include Ntdddisk.h, Ntddk.h, Ntdddisk.h)

See also

IOCTL_DISK_CONTROLLER_NUMBER