IMbnConnectionManager::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 a connection.

Syntax

HRESULT GetConnection(
  [in]          LPCWSTR        connectionID,
  [out, retval] IMbnConnection **mbnConnection
);

Parameters

[in] connectionID

A string containing the connection ID.

[out, retval] mbnConnection

A pointer to an IMbnConnection interface that represents the requested connection. If the method returns anything other than S_OK, then this is NULL.

Return value

This method can return one of these values.

Return code Description
S_OK
The method completed successfully.
E_POINTER
The mbnConnection parameter is NULL.
E_OUTOFMEMORY
Could not allocate the required memory.

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

IMbnConnectionManager