EnableInterface

[This is preliminary documentation and subject to change.]

The EnableInterface function tells the routing protocol that an interface is enabled. The protocol can use the interface.

DWORD EnableInterface(
  ULONG InterfaceIndex  // index of the interface
);
 

Parameters

InterfaceIndex
Identifies the interface in the set of interfaces configured on the router.

Return Values

NO_ERROR
The interface was enabled successfully.
ERROR_CAN_NOT_COMPLETE
The attempt to enable the interface failed.
ERROR_INVALID_PARAMETER
The InterfaceIndex parameter is invalid (for example, no interface exists with that index).

Remarks

If this function is called on an interface that is bound to an adapter, the routing protocol should activate the interface.

QuickInfo

  Windows NT: Use version 5.0 and later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in routprot.h.
  Import Library: user-defined.

See Also

BindInterface, DisableInterface, EnableInterface Sample