IMbnConnectionManager::GetConnections 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 list of available connections.

Syntax

HRESULT GetConnections(
  [out] SAFEARRAY **mbnConnections
);

Parameters

[out] mbnConnections

An array of IMbnConnection interfaces representing connections that are associated with the devices. If this method returns anything other than S_OK, then this is NULL. Otherwise the calling application must free the allocated memory by calling SafeArrayDestroy.

Return value

This method can return one of these values.

Return code Description
S_OK
The method completed successfully.
E_POINTER
The mbnConnections 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