NdisIfDeregisterProvider function (ndis.h)

The NdisIfDeregisterProvider function deregisters an interface provider that was previously registered by a call to the NdisIfRegisterProvider function.

Syntax

void NdisIfDeregisterProvider(
  [in] NDIS_HANDLE NdisProviderHandle
);

Parameters

[in] NdisProviderHandle

A handle that identifies the network interface provider. The caller obtained this handle from a previous call to the NdisIfRegisterProvider function.

Return value

None

Remarks

NDIS drivers call the NdisIfDeregisterProvider function to deregister as a network interface provider. NDIS drivers should deregister as interface providers when they are unloaded.

The interface provider must ensure that it does not have any interfaces registered when it calls NdisIfDeregisterProvider. To deregister interfaces, the provider must call the NdisIfDeregisterInterface function once for each registered interface.

The provider must not use the provider handle that it passed at the NdisProviderHandle parameter after it calls NdisIfDeregisterProvider.

Requirements

Requirement Value
Minimum supported client Supported in NDIS 6.0 and later.
Target Platform Desktop
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL PASSIVE_LEVEL
DDI compliance rules Irql_Interfaces_Function(ndis)

See also

NdisIfDeregisterInterface

NdisIfRegisterProvider