// ehstorioctl.h
// CTL_CODE(0x002d, 0x506, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_EHSTOR_DEVICE_QUERY_PROPERTIES 0x002D1418
View the official Windows Driver Kit DDI referenceNo description available.
A silo driver sends this IOCTL to the storage device stack to query for storage device properties. The Enhanced Storage Class Driver (EHSTOR) will handle the request and return the available properties.
None.
None.
The output buffer at Irp->AssociatedIrp.SystemBuffer contains an EHSTOR_DEVICE_PROPERTIES structure. EHSTOR_DEVICE_PROPERTIES is declared in ehstorioctl.h as the following.
typedef struct _EHSTOR_DEVICE_PROPERTIES
{
ULONG StructSize;
ULONG BytesPerSector;
} EHSTOR_DEVICE_PROPERTIES;
an EHSTOR_DEVICE_PROPERTIES structure.
STATUS_SUCCESS is returned in the Status field if device properties are returned in the system buffer. Otherwise, another appropriate status code is returned.
The size, in bytes, of a sector on the underlying storage device.
The size of the structure. This is set to sizeof(EHSTOR_DEVICE_PROPERTIES).
Currently, bytes per sector is the only property available in EHSTOR_DEVICE_PROPERTIES.