Closing Connections through HCI (Windows Embedded CE 6.0)


The protocol layer can close an existing connection to the HCI layer by calling the HCI_CloseDeviceContext function. A call to HCI_CloseDeviceContext terminates all calls placed by the protocol layer and all connections owned by this layer to close.

int HCI_CloseDeviceContext(
  HANDLE   hDeviceContext           /* IN */

To specify the connection to close, pass the device context handle returned by the HCI_EstablishDeviceContext function.

Community Additions