[This is preliminary documentation and subject to change.]
The RtmGetNetworkCount function retrieves the number of networks that the Router Table Manager (RTM) has routes to.
ULONG RtmGetNetworkCount(
DWORD ProtocolFamily // type of network (IP or IPX)
);
If the return value is zero, either no routes are available, or the operation failed. Call GetLastError to obtain more information:
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, RTM Protocol Family Identifiers