6.3  Set and Query Requests

TAPI requests are passed to the WAN miniport as OID_TAPI_XXX requests with an associated structure that describes the action to be taken. The NdisRequestQueryInformation request type is specified in a call to NdisRequest when the miniport NIC driver should pass information back to the caller. The NdisRequestSetInformation request type is specified for requests that do not return any information other than completion status. An NdisRequest call from NDISWAN is routed by the NDIS library to the target miniport’s MiniportQueryInformation function or MiniportSetInformation function.

All requests sent to a WAN miniport by the NDISTAPI driver can be completed either synchronously or asynchronously. If a NIC driver determines that it cannot complete the request immediately, then it can simply return NDIS_STATUS_PENDING and call NdisMQueryInformationComplete or NdisMSetInformationComplete when it has completed the request.