BluetoothSdpGetElementData function

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

Syntax

DWORD BluetoothSdpGetElementData(
  LPBYTE            pSdpStream,
  ULONG             cbSdpStreamLength,
  PSDP_ELEMENT_DATA pData
);

Parameters

pSdpStream

A pointer to a valid SDP stream.

cbSdpStreamLength

The length, in bytes, of pSdpStream.

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

   
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.dll

See Also

BluetoothSdpEnumAttributes

BluetoothSdpGetContainerElementData

BluetoothSdpGetString

SDP_ELEMENT_DATA

SDP_STRING_TYPE_DATA