PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK callback function

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


BOOL PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK(
   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

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

None supported

Header

BluetoothAPIs.h (include Bthsdpdef.h or BluetoothAPIs.h)

See also

BluetoothSdpGetElementData

 

 

Show: