[This is preliminary documentation and subject to change.]
The RtmRegisterClient function registers a client as a handler of the specified protocol. It establishes a route change notification mechanism for the client, and sets protocol options.
HANDLE RtmRegisterClient(
DWORD ProtocolFamily, // identifier of protocol family
DWORD RoutingProtocol, // identifier of routing protocol
HANDLE ChangeEvent, // event to signal when best routes change
DWORD Flags // flags to indicate special handling of
// routing protocol
);
This parameter is optional. If the caller specifies NULL for this parameter, the RTM will not notify the client of changes in best route status.
Flags | Values |
---|---|
RTM_PROTOCOL_SINGLE_ROUTE | The RTM will only keep one route per destination network for the routing protocol, that is, the RTM will replace route entries that have the same destination network numbers instead of adding new ones. |
On successful return, a HANDLE value that identifies the client in subsequent calls to the RTM.
A NULL handle indicates that the RTM was unable to register the client. Call GetLastError to obtain the reason for the failure.
Windows NT: Use version 5.0 and later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in rtm.h.
Import Library: Link with rtm.lib.
GetLastError, RegisterProtocol, RTM Protocol Family Identifiers, RtmDequeueRouteChangeMessage, RtmDeregisterClient