TCPIP_STACK_NetGetType Function
C
TCPIP_NETWORK_TYPE TCPIP_STACK_NetGetType(
TCPIP_NET_HANDLE hNet
);
Description
This function returns the network interface type: primary or alias.
Preconditions
The TCP/IP stack should have been initialized by TCPIP_STACK_Initialize() and support for alias interfaces enabled. Otherwise, all interfaces are primary.
Parameters
Parameters | Description |
---|---|
hNet | Interface handle. |
Returns
TCPIP_NETWORK_TYPE_PRIMARY - If interface exists and the interface is a primary interface.
TCPIP_NETWORK_TYPE_ALIAS - If the interface exists and is an alias.
TCPIP_NETWORK_TYPE_UNKNOWN - No such interface exists.
Remarks
None.