NETCON_MEDIATYPE enumeration (netcon.h)

[Internet Connection Firewall may be altered or unavailable in subsequent versions. Instead, use the Windows Firewall API.]

The values of the NETCON_MEDIATYPE enumerate the possible ways the computer connects to the network.

Syntax

typedef enum tagNETCON_MEDIATYPE {
  NCM_NONE = 0,
  NCM_DIRECT,
  NCM_ISDN = 2,
  NCM_LAN,
  NCM_PHONE,
  NCM_TUNNEL,
  NCM_PPPOE,
  NCM_BRIDGE,
  NCM_SHAREDACCESSHOST_LAN,
  NCM_SHAREDACCESSHOST_RAS
} NETCON_MEDIATYPE;

Constants

 
NCM_NONE
Value: 0
No media is present.
NCM_DIRECT
Direct serial connection through a serial port.
NCM_ISDN
Value: 2
Connection is through an integrated services digital network (ISDN) line.
NCM_LAN
Connection is to a local area network (LAN).
NCM_PHONE
Dial-up connection over a conventional phone line.
NCM_TUNNEL
Virtual private network (VPN) connection.
NCM_PPPOE
Point-to-Point protocol (PPP) over Ethernet.
NCM_BRIDGE
Bridged connection.
NCM_SHAREDACCESSHOST_LAN
Shared connection to a LAN.
NCM_SHAREDACCESSHOST_RAS
Shared connection to a remote or wide area network (WAN).

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server None supported
Header netcon.h

See also

INetConnection

Internet Connection Sharing and Internet Connection Firewall Enumeration Types

Internet Connection Sharing and Internet Connection Firewall Reference

NETCON_PROPERTIES