BTH_HCI_IOCTL_GET_HANDLE_MODE (Compact 2013)
3/26/2014
This I/O control message retrieves the mode for active baseband connections. Send this message with DeviceIoControl.
Syntax
BOOL DeviceIoControl(
HANDLE hDevice, // handle to device
DWORD dwIoControlCode, // use BTH_HCI_IOCTL_GET_HANDLE_MODE
LPVOID lpInBuffer, // pointer to input buffer
DWORD nInBufferSize, // input buffer size
LPVOID lpOutBuffer, // pointer to output buffer
DWORD nOutBufferSize, // output buffer size
LPDWORD lpBytesReturned, // number of bytes returned
OVERLAPPED lpOverlapped // pointer to OVERLAPPED structure
);
Parameters
- hDevice
The handle to the device.
- dwIoControlCode
[in] Control code for the operation. Use BTH_HCI_IOCTL_GET_HANDLE_MODE for this operation.
- lpInBuffer
[in] Aligned pointer to an unsigned short containing a connection handle.
- nInBufferSize
[in] Set to 2.
lpOutBuffer
[out] Points to the buffer that receives the current mode. The value will be one of the values in the following table.Value
Mode
0x00
Active
0x01
Hold
0x02
Sniff
0x03
Park
- nOutBufferSize
[out] Set tosizeof(unsigned char)
.
- lpBytesReturned
[out] Equals nOutBufferSize.
- lpOverlapped
Ignored.
Requirements
Header |
bt_ddi.h |