IMbnInterface::GetConnection method (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.

Gets the IMbnConnection object associated with this interface.

Syntax

HRESULT GetConnection(
  [out] IMbnConnection **mbnConnection
);

Parameters

[out] mbnConnection

The IMbnConnection object.

Return value

This method can return one of these values.

Return code Description
S_OK
The method completed successfully. mbnConnection contains a valid object.
HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
Either there is no available connection or the device is not registered to a network.

Requirements

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

See also

IMbnInterface