INetworkConnectionCostEvents::ConnectionCostChanged method (netlistmgr.h)

The ConnectionCostChanged method notifies an application of a network cost change for a connection.

Syntax

HRESULT ConnectionCostChanged(
  [in] GUID  connectionId,
  [in] DWORD newCost
);

Parameters

[in] connectionId

A unique ID that identifies the connection on which the cost change event occurred.

[in] newCost

A DWORD value that represents the new cost of the connection. The lowest 16 bits represent the cost level, and the highest 16 bits represent the flags. Possible values are defined by the NLM_CONNECTION_COST enumeration.

Return value

This method returns S_OK on success.

Requirements

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

See also

INetworkConnectionCostEvents