IOCTL_BLUETOOTH_GET_PEER_DEVICE (Compact 2013)
3/26/2014
This I/O control message retrieves the address of a peer Bluetooth device. Send this message with DeviceIoControl.
Syntax
BOOL DeviceIoControl(
HANDLE hDevice, // handle to the device
DWORD dwIoControlCode, // use IOCTL_BLUETOOTH_GET_PEER_DEVICE
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
[in] Handle to the device.
- dwIoControlCode
[in] Control code for the operation. Use IOCTL_BLUETOOTH_GET_PEER_DEVICE for this operation.
- lpInBuffer
[in] Set to NULL.
- nInBufferSize
[in] Set to zero
- lpOutBuffer
[out] Pointer to a BT_ADDR that receives the address of the peer device.
- nOutBufferSize
[out] Set to sizeof(BT_ADDR).
- lpBytesReturned
[in][out] set to NULL.
- lpOverlapped
[in] Ignored, set to NULL.
Remarks
BT_ADDR is defined in Ws2bth.h:
typedef ULONGLONG bt_addr, *pbt_addr, BT_ADDR, *PBT_ADDR;
Requirements
Header |
bt_api.h |