MSiSCSI_InitiatorSessionInfo WMI 类

MSiSCSI_InitiatorSessionInfo WMI 类公开与属于所指示 HBA 发起程序的会话和集合关联的信息。

由于此类与存储微型端口驱动程序的特定实例相关联,因此微型端口驱动程序必须使用微型端口驱动程序管理的特定物理设备对象的名称 (PDO) 注册该类。

MSiSCSI_InitiatorSessionInfo 类在 Mgmt.mof 中定义。

class MSiSCSI_InitiatorSessionInfo {
  [read,key] String  InstanceName;
  [read] boolean  Active;
  [WmiDataId(1), DisplayName("Adapter Id") : amended, 
    DisplayInHex, description("Id that is globally unique to
    each instance of each adapter. Using the address of the 
    Adapter Extension is a good idea.") : amended]
    uint64  UniqueAdapterId;
  [WmiDataId(2), read, DisplayName("Count of Elements in 
    SessionsList array") : amended,
    cpp_quote(
    "\n    // Number of elements in SessionList array\n"),
    Description("Number of elements in SessionList array") : 
    amended] 
    uint32  SessionCount;
  [WmiDataId(3), read, DisplayName("List Of Sessions") :
    amended, Description("Variable length array of sessions.
    SessionCount specifies the number of elements in the 
    array") : amended, WmiSizeIs("SessionCount")]  
    ISCSI_SessionStaticInfo  SessionsList[];
};

当 WMI 工具套件编译上述类定义时,它将生成 MSiSCSI_InitiatorSessionInfo 数据结构。