BTH_HCI_IOCTL_GET_HANDLE_MODE (Windows CE 5.0)
This IOCTL retrieves the mode for active baseband connections. The different modes are normal, sniff, hold, and park.
Parameters
- hDeviceContext
[in] Device context handle. - fSelector
[in] Equals BTH_HCI_IOCTL_GET_HANDLE_MODE. - cInBuffer
[in] Equals 2. - pInBuffer
[in] Contains an aligned pointer to an unsigned short containing a connection handle. - cOutBuffer
[in] Equals 1. - pOutBuffer
[out] Contains the mode as defined in the ModeChange command of the HCI Specification in the Bluetooth Core Specification. - pcDataReturned
[out] Equals cOutBuffer.
Return Values
If the call succeeds, the return value is ERROR_SUCCESS.
If the function fails, the following table shows a list of possible error values.
Error value | Description |
---|---|
ERROR_CONNECTION_INVALID | The connection does not exist. |
ERROR_INVALID_PARAMETER | Parameters are invalid (buffers are not properly sized). |
ERROR_SERVICE_NOT_ACTIVE | HCI is not active or there is no hardware. |
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Bt_ddi.h.
Send Feedback on this topic to the authors