// 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 referenceNo description available.
The IOCTL_STORAGE_GET_PHYSICAL_ELEMENT_STATUS control code queries for and returns the physical element status from a device.
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.
Specifies the size of the input buffer, in bytes.
A pointer to an output buffer that contains a PHYSICAL_ELEMENT_STATUS structure that defines the physical element status from a device.
The size of the output buffer, in bytes.
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.
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
PHYSICAL_ELEMENT_STATUS_REQUEST