BluetoothSdpGetElementData function (bluetoothapis.h)

The BluetoothSdpGetElementData function retrieves and parses a single element from an SDP stream.

Syntax

DWORD BluetoothSdpGetElementData(
  [in]  LPBYTE            pSdpStream,
  [in]  ULONG             cbSdpStreamLength,
  [out] PSDP_ELEMENT_DATA pData
);

Parameters

[in] pSdpStream

A pointer to a valid SDP stream.

[in] cbSdpStreamLength

The length, in bytes, of pSdpStream.

[out] pData

A pointer to a buffer to be filled with the data of the SDP element found at the beginning of the pSdpStream SDP stream.

Return value

Returns ERROR_SUCCESS when the SDP element is parsed correctly. Returns ERROR_INVALID_PARAMETER if one of the required parameters is NULL, or if the SDP stream pointed to by pSdpStream is not valid.

Requirements

Requirement Value
Minimum supported client Windows Vista, Windows XP with SP2 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header bluetoothapis.h (include Bthsdpdef.h, BluetoothAPIs.h)
Library Bthprops.lib
DLL bthprops.cpl

See also

BluetoothSdpEnumAttributes

BluetoothSdpGetContainerElementData

BluetoothSdpGetString

SDP_ELEMENT_DATA

SDP_STRING_TYPE_DATA