INetworkConnectionCost::GetCost method (netlistmgr.h)
The GetCost method retrieves the network cost associated with a connection.
HRESULT GetCost(
[out] DWORD *pCost
);
[out] pCost
A DWORD value that represents the network cost of the connection. The lowest 16 bits represent the cost level and the highest 16 bits represent the cost flags. Possible values are defined by the NLM_CONNECTION_COST enumeration.
Returns S_OK on success. Otherwise an HRESULT error code is returned. Possible values include:
Return code | Description |
---|---|
|
pCost is NULL |
|
Network connectivity is currently unavailable. |
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 |