// hbapiwmi.h
typedef struct _MS_SMHBA_PROTOCOLSTATISTICS {
LONGLONG SecondsSinceLastReset;
LONGLONG InputRequests;
LONGLONG OutputRequests;
LONGLONG ControlRequests;
LONGLONG InputMegabytes;
LONGLONG OutputMegabytes;
} MS_SMHBA_PROTOCOLSTATISTICS, *PMS_SMHBA_PROTOCOLSTATISTICS;
View the official Windows Driver Kit DDI referenceNo description available.
The MS_SMHBA_PROTOCOLSTATISTICS structure is used to report protocol traffic statistics on a port.
SecondsSinceLastResetThe number of seconds since the statistics were last reset.
InputRequestsThe number of input requests.
OutputRequestsThe number of output requests.
ControlRequestsThe number of control requests.
InputMegabytesThe number of megabytes of data that has been input.
OutputMegabytesThe number of megabytes of data that has been output.
The statistics counters whose values are reported in the members of this structure are 64-bit signed integers that wrap to zero on exceeding 2**63-1. The statistics counters are not reset during normal operation. Therefore, traffic rates can be determined by the difference of counter values that are derived from two successive calls, with appropriate adjustments made for counter wrap. If an HBA does not support a specific statistic, it returns the value of -1 for the corresponding counter.