INetworkConnectionCost::GetDataPlanStatus method (netlistmgr.h)

The GetDataPlanStatus method retrieves the status of the data plan associated with a connection.

Syntax

HRESULT GetDataPlanStatus(
  [out] NLM_DATAPLAN_STATUS *pDataPlanStatus
);

Parameters

[out] pDataPlanStatus

Pointer to an NLM_DATAPLAN_STATUS structure that describes the status of the data plan associated with the connection. The caller supplies the memory of this structure.

Return value

Returns S_OK on success. Otherwise, an HRESULT error code is returned. Possible values include:

Return code Description
E_POINTER
pDataPlanStatus is NULL.
HRESULT_FROM_WIN32(ERROR_NO_NETWORK)
Network connectivity is currently unavailable.

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

INetworkConnectionCost