IMbnConnection interface (mbnapi.h)

Important

Starting in Windows 10, version 1803, the Win32 APIs described in this section are replaced by the Windows Runtime APIs in the Windows.Networking.Connectivity namespace.

Represents the network connectivity of a device.

Inheritance

The IMbnConnection interface inherits from the IUnknown interface. IMbnConnection also has these types of members:

Methods

The IMbnConnection interface has these methods.

 
IMbnConnection::Connect

Establishes a data connection.
IMbnConnection::Disconnect

Disconnects a data connection.
IMbnConnection::get_ConnectionID

Gets the unique identifier for the connection.
IMbnConnection::get_InterfaceID

Gets the interface identifier.
IMbnConnection::GetActivationNetworkError

Gets the network error returned in a Packet Data Protocol (PDP) context activation failure.
IMbnConnection::GetConnectionState

Gets the current connection state of the device.
IMbnConnection::GetVoiceCallState

Gets the voice call state of the device.

Remarks

This interface is only available when a Mobile Broadband device is registered to a network or when the device is in MBN_READY_STATE_DEVICE_LOCKED state. When a device deregisters from the network this COM interface is removed and the Mobile Broadband service will call the OnConnectionRemoval method of the IMbnConnectionManagerEvents interface.

IMbnConnection objects are provided by calls to the GetConnection and GetConnections methods of the IMbnConnectionManager interface.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header mbnapi.h