[This is preliminary documentation and subject to change.]
The BindInterface function tells the routing protocol that an adapter has been allocated for an interface. The function directs the routing protocol to start protocol-defined activities over this adapter for the interface (unless the interface is administratively disabled).
DWORD BindInterface(
ULONG InterfaceIndex, // index of the interface
PVOID BindingInfo // adapter information block
);
The InterfaceIndex parameter is invalid, for example, no interface exists with that index, or the interface exists, but is already bound.
One of the parameters in the adapter information pointed to by the BindingInfo parameter is invalid.
If this function is called on an interface that is administratively enabled, the routing protocol should activate the interface.
Windows NT: Use version 5.0 and later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in routprot.h.
Import Library: user-defined.
BindInterface Sample, IP_ADAPTER_BINDING_INFO, IPX_ADAPTER_BINDING_INFO, UnbindInterface