// iscsiprf.h
typedef struct _MSiSCSI_SessionStatistics {
WCHAR iSCSIName[223 + 1];
ULONGLONG USID;
ULONGLONG UniqueAdapterId;
ULONGLONG BytesSent;
ULONGLONG BytesReceived;
ULONGLONG PDUCommandsSent;
ULONGLONG PDUResponsesReceived;
ULONGLONG DigestErrors;
ULONGLONG ConnectionTimeoutErrors;
ULONGLONG FormatErrors;
} MSiSCSI_SessionStatistics, *PMSiSCSI_SessionStatistics;
View the official Windows Driver Kit DDI referenceNo description available.
The MSiSCSI_SessionStatistics structure is used by iSCSI initiators to report session statistics.
iSCSINameA wide character string that contains the name of an iSCSI target.
USIDThe iSCSI session identifier (ID) for this connection instance. This ID is an internal value that the iSCSI protocol uses to identify the session. Do not use this ID. Application software should use the session identifier that the LoginToTarget and AddConnectionToSession methods return in the UniqueSessionId parameter.
UniqueAdapterIdA 64-bit integer that uniquely identifies an HBA initiator and a loaded instance of a storage miniport driver that manages the HBA. The initiator should use the address of the adapter extension or another address that the device driver owns to construct this ID. The initiator reports this value in the UniqueAdapterId member of the MSiSCSI_HBAInformation structure.
BytesSentThe number of bytes that are sent over this session.
BytesReceivedThe number of bytes that are received over this session.
PDUCommandsSentThe number of PDUs that are sent over this session.
PDUResponsesReceivedThe number of PDUs that are received over this session.
DigestErrorsThe number of digest errors that have occurred in this session.
ConnectionTimeoutErrorsThe number of connection time-out errors that have occurred in this session.
FormatErrorsThe number of format errors that have occurred in this session.
It is optional that you implement this class.
MSiSCSI_SessionStatistics WMI Class