[This is preliminary documentation and subject to change.]
The RegisterProtocol function registers the routing protocol with the router manager. It also informs the router manager what functionality the routing protocol supports.
DWORD RegisterProtocol (
PMPR_ROUTING_CHARACTERISTICS pRoutingChar,
PMPR_SERVICE_CHARACTERISTICS pServiceChar
);
All routing protocol DLLs must fill in values for the MPR_ROUTING_CHARACTERISTICS structure.
Routing protocol DLLs that provide services must fill in values for the MPR_SERVICE_CHARACTERISTICS structure. If a routing protocol DLL does not provide services, it should fill in zero for the fSupportedFunctionality member of this structure, but need not fill in values for the other members.
Routing protocols are implemented in user-mode DLLs. A single DLL may implement multiple routing protocols. Therefore, router manager may call RegisterProtocol multiple times, once for each routing protocol implemented in the DLL.
Windows NT: Use version 5.0 and later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in routprot.h.
Import Library: user-defined.
MPR_ROUTING_CHARACTERISTICS, MPR_SERVICE_CHARACTERISTICS, RegisterProtocol Sample