Share via


BTH_HCI_IOCTL_HANDLE_ENCRYPTED (Compact 2013)

3/26/2014

This I/O control message retrieves the encryption status of the connection. Send this message with DeviceIoControl.

Syntax

BOOL DeviceIoControl(
    HANDLE hDevice,           // handle to device
    DWORD dwIoControlCode,    // use BTH_HCI_IOCTL_HANDLE_ENCRYPTED
    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_HANDLE_ENCRYPTED for this operation.
  • lpInBuffer
    [in] Points to an unsigned short handle to the connection.
  • nInBufferSize
    [in] Set to 2.
  • lpOutBuffer
    [out] Points to an aligned unsigned integer that will receive the encryption status.
  • nOutBufferSize
    [out] Set to 4.
  • lpBytesReturned
    [out] Equals nOutBufferSize.
  • lpOverlapped
    Ignored.

Requirements

Header

bt_ddi.h

See Also

Reference

Bluetooth HCI IOCTLs