IMbnDeviceService::CloseCommandSession 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 a command session to a device service on a Mobile Broadband device.
HRESULT CloseCommandSession(
[out] ULONG *requestID
);
[out] requestID
A unique request ID assigned by the Mobile Broadband service to identify this request.
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. |
CloseCommandSession closes the command session to the mobile broadband device service.
This is an asynchronous operation and CloseCommandSession will return immediately. On completion of the operation, the Mobile Broadband service will call the OnCloseCommandSessionComplete method of the IMbnDeviceServicesEvents interface.
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | mbnapi.h |