Skip to content

Latest commit

 

History

History
139 lines (101 loc) · 4.02 KB

nf-bluetoothapis-bluetoothsdpenumattributes.md

File metadata and controls

139 lines (101 loc) · 4.02 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:bluetoothapis.BluetoothSdpEnumAttributes
BluetoothSdpEnumAttributes function (bluetoothapis.h)
The BluetoothSdpEnumAttributes function enumerates through the SDP record stream, and calls the callback function for each attribute in the record.
BluetoothSdpEnumAttributes
BluetoothSdpEnumAttributes function [Bluetooth]
bluetooth.bluetoothsdpenumattributes
bluetoothapis/BluetoothSdpEnumAttributes
bluetooth\bluetoothsdpenumattributes.htm
bluetooth
3113db03-a32f-47ad-a442-3769f41ee8e7
12/05/2018
BluetoothSdpEnumAttributes, BluetoothSdpEnumAttributes function [Bluetooth], bluetooth.bluetoothsdpenumattributes, bluetoothapis/BluetoothSdpEnumAttributes
bluetoothapis.h
Bthsdpdef.h, BluetoothAPIs.h
Windows
Windows Vista, Windows XP with SP2 [desktop apps only]
None supported
Bthprops.lib
bthprops.cpl
Windows
19H1
BluetoothSdpEnumAttributes
bluetoothapis/BluetoothSdpEnumAttributes
c++
APIRef
kbSyntax
DllExport
bthprops.cpl
BluetoothAPIs.dll
Ext-MS-Win-Bluetooth-APIs-l1-1-0.dll
BluetoothSdpEnumAttributes

BluetoothSdpEnumAttributes function

-description

The BluetoothSdpEnumAttributes function enumerates through the SDP record stream, and calls the callback function for each attribute in the record.

-parameters

-param pSDPStream

Pointer to a valid record stream that is formatted as a single SDP record.

-param cbStreamSize

Size of the stream pointed to by pSDPStream, in bytes.

-param pfnCallback

Pointer to the callback routine. See PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK for more information about the callback.

-param pvParam

Optional parameter to be passed to the callback routine.

-returns

Returns TRUE if an enumeration occurred. Returns FALSE upon failure. Call the GetLastError function for more information. The following table describes common error codes associated with the BluetoothSdpEnumAttributes function:

Return code Description
ERROR_INVALID_PARAMETER
The pSDPStream or pfnCallback parameter is NULL.
ERROR_INVALID_DATA
The SDP stream is corrupt.

-remarks

If the callback function returns FALSE, the enumeration initiated by the BluetoothSdpEnumAttributes function is stopped.

The record stream in pSDPStream must be an SDP stream formatted as an SDP record, a SEQUENCE containing attribute ID (UINT16) plus attribute value (any SDP element type) pairs.

-see-also

BluetoothSdpGetContainerElementData

BluetoothSdpGetElementData

BluetoothSdpGetString

PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK

SDP_ELEMENT_DATA

SDP_STRING_TYPE_DATA