BthGetEirRecord (Compact 2013)
3/26/2014
This function returns the local or remote Extended Inquiry Response (EIR) record specified by data type.
Syntax
Int BthGetEirRecord(
__in BT_ADDR *pbta,
__in BYTE bDataType,
__out PBYTE pcbLength,
__out PBYTE pData,
__in DWORD cbDataBuffer
);
Parameters
- pbta
[in] Pointer to the Bluetooth address. Set to NULL to query local EIR data.
- bDataType
[out] Data type of the EIR record.
- pcbLength
[out] Length of the EIR record in bytes.
- pData
[out] Record data blob.
- cbDataBuffer
[in] Size of the pData buffer in bytes.
Return Value
The following table shows the possible return values.
Value |
Description |
---|---|
ERROR_SUCCESS |
Success. |
ERROR_SERVICE_NOT_ACTIVE |
The Bluetooth stack is not present. |
ERROR_NOT_FOUND |
The specified EIR record is not found. |
Remarks
You can use this function to get a record without enumerating through all of the EIR records.
Requirements
Header |
bt_api.h |
Library |
Btdrt.lib |