IOCTL_STORAGE_GET_PHYSICAL_ELEMENT_STATUS - NtDoc

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

// CTL_CODE(0x002d, 0x729, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_STORAGE_GET_PHYSICAL_ELEMENT_STATUS 0x002D1CA4
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

IOCTL_STORAGE_GET_PHYSICAL_ELEMENT_STATUS IOCTL

Description

The IOCTL_STORAGE_GET_PHYSICAL_ELEMENT_STATUS control code queries for and returns the physical element status from a device.

Parameters

Major code

Input buffer

A pointer to an input buffer that receives a PHYSICAL_ELEMENT_STATUS_REQUEST structure that defines the starting element to look for the physical element status of a device.

Input buffer length

Specifies the size of the input buffer, in bytes.

Output buffer

A pointer to an output buffer that contains a PHYSICAL_ELEMENT_STATUS structure that defines the physical element status from a device.

Output buffer length

The size of the output buffer, in bytes.

Input/output buffer

Input/output buffer length

Status block

Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful.

Otherwise, Status is set to the appropriate error condition as a NTSTATUS code.

For more information, see NTSTATUS Values.

Remarks

To perform this operation, call the DeviceIoControl function with the following parameters.

BOOL
WINAPI
DeviceIoControl((HANDLE)       hDevice,         // handle to device
                (DWORD)        IOCTL_STORAGE_GET_PHYSICAL_ELEMENT_STATUS, // dwIoControlCode
                (LPDWORD)      lpInBuffer,      // input buffer
                (DWORD)        nInBufferSize,   // size of input buffer
                (LPDWORD)      lpOutBuffer,     // output buffer
                (DWORD)        nOutBufferSize,  // size of output buffer
                (LPDWORD)      lpBytesReturned, // number of bytes returned
                (LPOVERLAPPED) lpOverlapped );  // OVERLAPPED structure

See also

DeviceIoControl

PHYSICAL_ELEMENT_STATUS

PHYSICAL_ELEMENT_STATUS_REQUEST