IMbnServiceActivationEvents::OnActivationComplete 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 called by the Mobile Broadband service to indicate that a service activation request ahs completed.
Syntax
HRESULT OnActivationComplete(
[in] IMbnServiceActivation *serviceActivation,
[in] SAFEARRAY *vendorSpecificData,
[in] ULONG requestID,
[in] HRESULT status,
[in] ULONG networkError
);
Parameters
[in] serviceActivation
Pointer to an IMbnServiceActivation interface representing the device on which the request was performed.
[in] vendorSpecificData
A byte array containing the data returned by the underlying Mobile Broadband miniport driver in NDIS_STATUS_WWAN_SERVICE_ACTIVATION.
[in] requestID
The request ID assigned by the Mobile Broadband service when the request was initialized.
[in] status
The completion status.
A calling application can expect one of the following values.
[in] networkError
The error code returned by the network during the activation operation. This value is meaningful only when status is not S_OK.
The exact value of networkError is driver/network dependent.
Return value
This method must return S_OK.
Remarks
Successful service activation will also result in a change to the ready state of the device. the Mobile Broadband service will call the OnReadyStateChange method of IMbnInterfaceEvents as notification.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | mbnapi.h |