A NDIS 6.0 miniport driver provides statistic counters that are provided by the function MiniportQueryInformation. The information request is passed in the NdisRequest
parameter. That actual query is defined by the member Oid
of the NdisRequest
.
I want to query some of this information in an application process, e.g. the value for OID_802_3_RCV_OVERRUN
. The miniport driver runs in NDIS context in the kernel process. Usually only a protocol driver can call functions that cause the invocation of the miniport functions.
The IP Helper Functions API include the functions GetIfEntry and GetIFEntry2 to retrieved information about the network interface. The result is a MIB_IF_ROW2 struct that includes counters of the send and received data. But it only includes a (cumulative) InErrors
member, not the counter for the requested Oid OID_802_3_RCV_OVERRUN
.
How can I pass a request for information through NDIS and get the desired information from the miniport driver?