NLM_NETWORK_CATEGORY enumeration (netlistmgr.h)

The NLM_NETWORK_CATEGORY enumeration is a set of flags that specify the category type of a network.

Syntax

typedef enum NLM_NETWORK_CATEGORY {
  NLM_NETWORK_CATEGORY_PUBLIC,
  NLM_NETWORK_CATEGORY_PRIVATE,
  NLM_NETWORK_CATEGORY_DOMAIN_AUTHENTICATED
} ;

Constants

Name Description
NLM_NETWORK_CATEGORY_PUBLIC The network is a public (untrusted) network.
NLM_NETWORK_CATEGORY_PRIVATE The network is a private (trusted) network.
NLM_NETWORK_CATEGORY_DOMAIN_AUTHENTICATED The network is authenticated against an Active Directory domain.

Remarks

The private or public network categories must never be used to assume which Windows Firewall ports are open, as the user can change the default settings of these categories. Instead, Firewall APIs should be called to ensure the ports that the required ports are open.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header netlistmgr.h