[This is preliminary documentation and subject to change.]
The AddInterface function adds an interface to be managed by the routing protocol. The protocol should consider the interface to be in a disabled state. The interface can be enabled by calling EnableInterface.
DWORD AddInterface(
LPWSTR InterfaceName, // name of the interface
ULONG InterfaceIndex, // index for the interface
NET_INTERFACE_TYPE InterfaceType,
// type of the interface
PVOID InterfaceInfo // interface information block
);
Value | Description |
---|---|
PERMANENT | Permanent connectivity (e.g., LAN, Frame Relay). |
DEMAND_DIAL | Demand dial connectivity (analog, ISDN, PPTP, switched FR). |
LOCAL_WORKSTATION_DIAL | Local workstation connectivity only. |
REMOTE_WORKSTATION_DIAL | Remote workstation connectivity only. |
Windows NT: Use version 5.0 and later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in routprot.h.
Import Library: user-defined.
AddInterface Sample, DeleteInterface, EnableInterface