// ntddstor.h
typedef struct _STORAGE_MINIPORT_DESCRIPTOR {
ULONG Version;
ULONG Size;
STORAGE_PORT_CODE_SET Portdriver;
BOOLEAN LUNResetSupported;
BOOLEAN TargetResetSupported;
USHORT IoTimeoutValue;
BOOLEAN ExtraIoInfoSupported;
union {
struct {
UCHAR LogicalPoFxForDisk : 1;
UCHAR ForwardIo : 1;
UCHAR Reserved : 6;
} DUMMYSTRUCTNAME;
UCHAR AsUCHAR;
} Flags;
#if ...
UCHAR Reserved0[2];
#else
UCHAR Reserved0[3];
#endif
ULONG Reserved1;
} STORAGE_MINIPORT_DESCRIPTOR, *PSTORAGE_MINIPORT_DESCRIPTOR;
View the official Windows Driver Kit DDI reference// winioctl.h
typedef struct _STORAGE_MINIPORT_DESCRIPTOR {
DWORD Version;
DWORD Size;
STORAGE_PORT_CODE_SET Portdriver;
BOOLEAN LUNResetSupported;
BOOLEAN TargetResetSupported;
WORD IoTimeoutValue;
BOOLEAN ExtraIoInfoSupported;
union {
struct {
BYTE LogicalPoFxForDisk : 1;
BYTE ForwardIo : 1;
BYTE Reserved : 6;
} DUMMYSTRUCTNAME;
BYTE AsBYTE;
} Flags;
#if ...
BYTE Reserved0[2];
#else
BYTE Reserved0[3];
#endif
DWORD Reserved1;
} STORAGE_MINIPORT_DESCRIPTOR, *PSTORAGE_MINIPORT_DESCRIPTOR;
View the official Win32 API referenceNo description available.
Reserved for system use.
VersionContains the size of this structure, in bytes. The value of this member will change as members are added to the structure.
SizeSpecifies the total size of the data returned, in bytes. This may include data that follows this structure.
PortdriverType of port driver as enumerated by the STORAGE_PORT_CODE_SET enumeration.
LUNResetSupportedIndicates whether a LUN reset is supported.
TargetResetSupportedIndicates whether a target reset is supported.
IoTimeoutValueThe timeout value for the device, in milliseconds (ms). Introduced in Windows 8.
ExtraIoInfoSupportedIndicates whether extra I/O info is supported. Introduced in Windows 8.1
FlagsFlags.DUMMYSTRUCTNAMEFlags.DUMMYSTRUCTNAME.LogicalPoFxForDiskFlags.DUMMYSTRUCTNAME.ForwardIoReserved for internal use. Do not use.
Flags.DUMMYSTRUCTNAME.ReservedReserved for future use.
Flags.AsUCHARReserved0[2]Reserved for future use.
Reserved0[3]Reserved for future use.
Reserved1Reserved for future use.
Reserved for system use.
VersionContains the size of this structure, in bytes. The value of this member will change as members are added to the structure.
SizeSpecifies the total size of the data returned, in bytes. This may include data that follows this structure.
PortdriverType of port driver as enumerated by the STORAGE_PORT_CODE_SET enumeration.
| Value | Meaning |
|---|---|
| StoragePortCodeSetReserved 0 |
Indicates an unknown storage adapter driver type. |
| StoragePortCodeSetStorport 1 |
Storage adapter driver is a Storport-miniport driver. |
| StoragePortCodeSetSCSIport 2 |
Storage adapter driver is a SCSI Port-miniport driver. |
LUNResetSupportedIndicates whether a LUN reset is supported.
TargetResetSupportedIndicates whether a target reset is supported.
IoTimeoutValueExtraIoInfoSupportedReserved0Reserved1