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 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 |
|---|---|
|
The method completed successfully. |
|
The mbnConnection 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 |