Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMbnDeviceService::CloseDataSession method

Closes the data session to a device service on a Mobile Broadband device.

Syntax


HRESULT CloseDataSession(
  [out] ULONG *requestID
);

Parameters

requestID [out]

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 codeDescription
S_OK

The method completed successfully.

E_ACCESSDENIED

This device service command is not allowed for calling process privileges.

Other

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.

See also

IMbnDeviceService

 

 

Community Additions

Show:
© 2015 Microsoft