2.4.6  Querying and Setting Miniport Driver Capabilities

Querying and setting miniport capabilities (per binding)

For querying and setting NIC operating characteristics and/or statistics information, the NIC driver’s MiniportQueryInformation or MiniportSetInformation is called. The MiniportQueryInformation function fills in results and returns an appropriate status code. If the call is to MiniportSetInformation, the miniport updates its operating characteristics. See the Network Driver Reference for more information on OIDs.

These two functions are potentially asynchronous. If they behave synchronously, they return immediately with a status code other than NDIS_STATUS_PENDING. If asynchronously, the function returns NDIS_STATUS_PENDING and when the miniport later completes the requested operation, it calls NdisMQueryInformationComplete from MiniportQueryInformation or NdisMSetInformationComplete from MiniportSetInformation.

The NDIS library guarantees that the miniport will have only one outstanding query or set request at a time so there is no need for the miniport to queue requests.