IOCTL_STORAGE_GET_DEVICE_NUMBER_EX - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddstor.h

// CTL_CODE(0x002d, 0x421, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_STORAGE_GET_DEVICE_NUMBER_EX 0x002D1084
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-ntddstor-ioctl_storage_get_device_number_ex)

IOCTL_STORAGE_GET_DEVICE_NUMBER_EX IOCTL

Description

Returns a STORAGE_DEVICE_NUMBER_EX structure that contains the FILE_DEVICE_XXX type, device number, device GUID, and, for a partitionable device, the partition number assigned to a device by the driver when the device is started. This request is usually issued by a fault-tolerant disk driver.

Parameters

Major code

Input buffer

None.

Input buffer length

None.

Output buffer

The driver returns the STORAGE_DEVICE_NUMBER_EX data in the buffer at Irp->AssociatedIrp.SystemBuffer.

Output buffer length

Parameters.DeviceIoControl.OutputBufferLength in the I/O stack location indicates the size, in bytes, of the parameter buffer, which must be >= sizeof(STORAGE_DEVICE_NUMBER_EX).

Input/output buffer

n/a

Input/output buffer length

n/a

Status block

The Information field is set to the number of bytes returned. The Status field is set to STATUS_SUCCESS, or possibly to STATUS_INSUFFICIENT_RESOURCES.

See also

IOCTL_STORAGE_GET_DEVICE_NUMBER

STORAGE_DEVICE_NUMBER_EX