WCM_CONNECTION_COST enumeration (wcmapi.h)

The WCM_CONNECTION_COST enumerated type determines the connection cost type and flags.

Syntax

typedef enum _WCM_CONNECTION_COST {
  WCM_CONNECTION_COST_UNKNOWN = 0x0,
  WCM_CONNECTION_COST_UNRESTRICTED = 0x1,
  WCM_CONNECTION_COST_FIXED = 0x2,
  WCM_CONNECTION_COST_VARIABLE = 0x4,
  WCM_CONNECTION_COST_OVERDATALIMIT = 0x10000,
  WCM_CONNECTION_COST_CONGESTED = 0x20000,
  WCM_CONNECTION_COST_ROAMING = 0x40000,
  WCM_CONNECTION_COST_APPROACHINGDATALIMIT = 0x80000
} WCM_CONNECTION_COST, *PWCM_CONNECTION_COST;

Constants

 
WCM_CONNECTION_COST_UNKNOWN
Value: 0x0
Connection cost information is not available.
WCM_CONNECTION_COST_UNRESTRICTED
Value: 0x1
The connection is unlimited and has unrestricted usage constraints.
WCM_CONNECTION_COST_FIXED
Value: 0x2
Usage counts toward a fixed allotment of data which the user has already paid for (or agreed to pay for).
WCM_CONNECTION_COST_VARIABLE
Value: 0x4
The connection cost is on a per-byte basis.
WCM_CONNECTION_COST_OVERDATALIMIT
Value: 0x10000
The connection has exceeded its data limit.
WCM_CONNECTION_COST_CONGESTED
Value: 0x20000
The connection is throttled due to high traffic.
WCM_CONNECTION_COST_ROAMING
Value: 0x40000
The connection is outside of the home network.

Note  The WCM_CONNECTION_COST_ROAMING value comes directly from the connection source. Attempts to set it directly will fail.

 
WCM_CONNECTION_COST_APPROACHINGDATALIMIT
Value: 0x80000
The connection is approaching its data limit.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header wcmapi.h