Compartilhar via


BTH_HCI_IOCTL_GET_LAST_INQUIRY_DATA (Compact 2013)

3/26/2014

This I/O control message retrieves the inquiry parameters from the cache for a particular device. Send this message with DeviceIoControl.

Syntax

BOOL DeviceIoControl(
    HANDLE hDevice,           // handle to device
    DWORD dwIoControlCode,    // use BTH_HCI_IOCTL_GET_LAST_INQUIRY_DATA
    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_LAST_INQUIRY_DATA for this operation.
  • lpInBuffer
    [in] Points to an aligned BD_ADDR structure containing the Bluetooth address.
  • nInBufferSize
    [in] Set to sizeof(BD_ADDR).
  • lpOutBuffer
    [out] Points to an InquiryResultBuffer structure that receives the last inquiry data.
  • nOutBufferSize
    [out] Set to sizeof(InquiryResultBuffer).
  • lpBytesReturned
    [out] Set to nOutBufferSize.
  • lpOverlapped
    Ignored.

Requirements

Header

bt_ddi.h

See Also

Reference

Bluetooth HCI IOCTLs
BD_ADDR
InquiryResultBuffer