// ndis.h
NDIS_STATUS NdisCmDispatchIncomingCall(
[in] NDIS_HANDLE NdisSapHandle,
[in] NDIS_HANDLE NdisVcHandle,
[in] PCO_CALL_PARAMETERS CallParameters
);
View the official Windows Driver Kit DDI referenceNo description available.
NdisCmDispatchIncomingCall informs the client of an incoming call on a SAP previously registered by that client.
NdisSapHandle [in]Specifies the handle identifying the SAP. NDIS set up this handle when the client originally called NdisClRegisterSap, and the call manager originally obtained this handle as an input parameter to its ProtocolCmRegisterSap function.
NdisVcHandle [in]Specifies the handle identifying the VC, created with NdisCoCreateVc when the call manager processes the incoming call offer directed to this registered SAP.
CallParameters [in]Pointer to a structure of type CO_CALL_PARAMETERS that specifies the traffic and media parameters for the VC.
When NdisCmDispatchIncomingCall returns anything other than NDIS_STATUS_PENDING, the call manager should make an internal call to its ProtocolCmIncomingCallComplete function. Otherwise, NDIS calls the CM's ProtocolCmIncomingCallComplete function when this operation is completed.
Before calling NdisCmDispatchIncomingCall, a stand-alone call manager has already done the following:
The CM's call to NdisCmDispatchIncomingCall causes NDIS to call the client's ProtocolClIncomingCall function, within which the client either accepts or rejects the requested connection. After deciding whether to accept the connection, the client calls NdisClIncomingCallComplete, which, in turn, calls the CM's ProtocolCmIncomingCallComplete function. If the client accepted the call, the CM next calls NdisCmDispatchCallConnected. Otherwise, it deactivates (and possibly deletes) the VC it created, after notifying the remote node that the offered call was rejected.
Only stand-alone call managers, which register themselves with NDIS as protocol drivers, can call NdisCmDispatchIncomingCall. Connection-oriented miniport drivers that provide integrated call-management support call NdisMCmDispatchIncomingCall instead.
ProtocolCmIncomingCallComplete
ProtocolCoReceiveNetBufferLists