次の方法で共有


NdisIfDeregisterInterface (Compact 2013)

3/26/2014

This function deregisters an NDIS network interface that was previously registered by a call to the NdisIfRegisterInterface function.

Syntax

VOID
  NdisIfDeregisterInterface(
    IN NET_IFINDEX  IfIndex
    );

Parameters

  • IfIndex
    An index that identifies the network interface to deregister. The interface provider obtained this index from a previous call to the NdisIfRegisterInterface function.

Return Value

None

Remarks

NDIS interface providers call the NdisIfDeregisterInterface function to deregister a network interface and to indicate that the interface should be removed from the list of known interfaces on the device.

An interface provider calls the NdisIfDeregisterInterface function, for example, because the interface has been uninstalled. Interface providers do not call NdisIfDeregisterInterface to indicate that an interface has changed state.

NdisIfDeregisterInterface releases the interface index so that NDIS can reassign the index to another interface that is registered later. Do not confuse the interface index with the NET_LUID index, which persists after a device restarts.

Requirements

Header

ndis.h

See Also

Reference

NDIS Network Interface Functions
NdisIfRegisterInterface

Other Resources

NET_LUID