STOR_UNIT_ATTRIBUTES结构(storport.h)

STOR_UNIT_ATTRIBUTES 结构包含指示存储设备单元对各种属性的支持的位字段。

语法

typedef struct _STOR_UNIT_ATTRIBUTES {
  ULONG DeviceAttentionSupported : 1;
  ULONG AsyncNotificationSupported : 1;
  ULONG D3ColdNotSupported : 1;
  ULONG BypassIOSupported : 1;
  ULONG Reserved : 28;
} STOR_UNIT_ATTRIBUTES, *PSTOR_UNIT_ATTRIBUTES;

成员

DeviceAttentionSupported

如果单元支持设备关注,则设置为 1。 否则,设置为 0。

AsyncNotificationSupported

如果设备支持异步通知,则设置为 1。 否则,设置为 0。

D3ColdNotSupported

如果 D3 冷电源状态 不支持,则设置为 1。 否则,设置为 0。

BypassIOSupported

如果单元支持 BypassIO,则设置为 1。 否则,设置为 0。

Reserved

保留位。 必须设置为 0。

言论

若要向 Storport 注册单元对各种属性的支持,Storport 微型端口驱动程序调用 StorPortSetUnitAttributes 此结构作为参数。

如果微型端口驱动程序支持异步通知,AsyncNotificationSupported 字段设置为 1,它将使用 StorPortAsyncNotificationDetected 例程将通知发送到 Storport 驱动程序。

要求

要求 价值
最低支持的客户端 Windows 8
标头 storport.h (包括 Storport.h)

另请参阅

StorPortAsyncNotificationDetected

StorPortSetUnitAttributes