INetworkConnectionCost::GetDataPlanStatus method

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

Syntax


HRESULT GetDataPlanStatus(
  [out] NLM_DATAPLAN_STATUS *pDataPlanStatus
);

Parameters

pDataPlanStatus [out]

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 codeDescription
E_POINTER

pDataPlanStatus is NULL.

HRESULT_FROM_WIN32(ERROR_NO_NETWORK)

Network connectivity is currently unavailable.

 

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

INetworkConnectionCost

 

 

Show: