NL_NETWORK_CONNECTIVITY_HINT structure (nldef.h)

Describes a level of network connectivity, the usage charge for a network connection, and other members reflecting cost factors.

The last four members of NL_NETWORK_CONNECTIVITY_HINT collectively work together to allow you to resolve the cost of using a connection. See the guidelines in How to manage metered network cost constraints.

Syntax

typedef struct _NL_NETWORK_CONNECTIVITY_HINT {
  NL_NETWORK_CONNECTIVITY_LEVEL_HINT ConnectivityLevel;
  NL_NETWORK_CONNECTIVITY_COST_HINT  ConnectivityCost;
  BOOLEAN                            ApproachingDataLimit;
  BOOLEAN                            OverDataLimit;
  BOOLEAN                            Roaming;
} NL_NETWORK_CONNECTIVITY_HINT;

Members

ConnectivityLevel

Type: NL_NETWORK_CONNECTIVITY_LEVEL_HINT

The level of network connectivity.

ConnectivityCost

Type: NL_NETWORK_CONNECTIVITY_COST_HINT

The usage charge for the network connection.

ApproachingDataLimit

Type: BOOLEAN

TRUE if the connection is approaching its data limit, otherwise FALSE.

OverDataLimit

Type: BOOLEAN

TRUE if the connection has exceeded its data limit, otherwise FALSE.

Roaming

Type: BOOLEAN

TRUE if the connection is roaming, otherwise FALSE.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004 (10.0; Build 19041)
Minimum supported server Windows Server, version 2004 (10.0; Build 19041)
Header nldef.h (include iphlpapi.h)

See also

How to manage metered network cost constraints