INetworkConnectionCostEvents::ConnectionCostChanged method

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

Syntax


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

Parameters

connectionId [in]

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

newCost [in]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Netlistmgr.h

IDL

Netlistmgr.idl

See also

INetworkConnectionCostEvents

 

 

Community Additions

ADD
Show: