IMbnDeviceService::CloseDataSession 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.
Closes the data session to a device service on a Mobile Broadband device.
Syntax
HRESULT CloseDataSession(
[out] ULONG *requestID
);
Parameters
[out] requestID
A unique request ID assigned by the Mobile Broadband service to identify this request.
Return value
The method can return one of the following values.
Return code | Description |
---|---|
|
The method completed successfully. |
|
This device service command is not allowed for calling process privileges. |
|
An error was encountered when executing this method. |
Remarks
CloseDataSession closes the data session to the mobile broadband device service. The data session must be opened before the application can call CloseDataSession.
This is an asynchronous operation and CloseDataSession will return immediately. On completion of the operation, the Mobile Broadband service will call the OnCloseDataSessionComplete method of the IMbnDeviceServicesEvents interface.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | mbnapi.h |