IMbnConnectionEvents::OnConnectComplete 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.
Notification method that signals the completion of a connection operation.
Syntax
HRESULT OnConnectComplete(
[in] IMbnConnection *newConnection,
[in] ULONG requestID,
[in] HRESULT status
);
Parameters
[in] newConnection
An IMbnConnection interface that represents the device on which the connection operation has completed.
[in] requestID
The request ID assigned by the Mobile Broadband service to identify the connection operation.
[in] status
The completion status.
A calling application can expect one of the following values.
Return value
This method must return S_OK.
Remarks
Once an activation context is established, an application can use IMbnConnection to get the current connection state.
When the connection operation results in an error, an application can call the GetActivationNetworkError method of the IMbnConnection interface to obtain network error information.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps | UWP apps] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | mbnapi.h |