PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK callback function (bluetoothapis.h)

The PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK is a callback function prototype that is called once for each attribute found in the pSDPStream parameter passed to the BluetoothSdpEnumAttributes function call.

Syntax

PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK PfnBluetoothEnumAttributesCallback;

BOOL PfnBluetoothEnumAttributesCallback(
  ULONG uAttribId,
  LPBYTE pValueStream,
  ULONG cbStreamSize,
  LPVOID pvParam
)
{...}

Parameters

uAttribId

The current attribute identifier in the SDP stream.

pValueStream

The raw SDP stream for the attribute value associated with uAttribId. Use the BluetoothSdpGetElementData function to parse the raw results into computer-readable data.

cbStreamSize

The size, in bytes, of pValueStream.

pvParam

The context passed in from a previous call to the BluetoothSdpEnumAttributes function.

Return value

Should return TRUE when the enumeration continues to the next attribute identifier found in the stream. Should return FALSE when enumeration of the record attribute identifiers should immediately stop.

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)

See also

BluetoothSdpGetElementData