NdisClDeregisterSap (NDIS 5.1) function
Note NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.
NdisClDeregisterSap releases a previously registered SAP.
Syntax
NDIS_STATUS NdisClDeregisterSap(
_In_ NDIS_HANDLE NdisSapHandle
);
Parameters
- NdisSapHandle [in]
Specifies the handle returned by NdisClRegisterSap.
Return value
NdisClDeregisterSap can return one of the following:
Return code | Description |
---|---|
NDIS_STATUS_PENDING | The call manager's ProtocolCmDeregisterSap function has been called to complete the requested operation. NDIS calls the client's ProtocolClDeregisterSapComplete function when this operation is completed. |
NDIS_STATUS_FAILURE | The SAP already is being closed, so this is a redundant call. If NdisClRegisterSap returns anything other than NDIS_STATUS_PENDING, the client should make an internal call to its ProtocolClDeregisterSapComplete function. |
Remarks
NdisClDeregisterSap releases a SAP on which the client previously registered itself to receive incoming calls with NdisClRegisterSap.
The client should consider the given NdisSapHandle invalid as soon as it calls NdisClDeregisterSap.
Requirements
Target platform |
Universal |
Version |
See NdisClDeregisterSap. |
Header |
Ndis.h (include Ndis.h) |
Library |
Ndis.lib |
IRQL |
<= DISPATCH_LEVEL |
See also
ProtocolClDeregisterSapComplete