Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
---|---|
|
The method completed successfully. |
|
The mbnConnections parameter is NULL. |
|
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 |