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