SdpAddAttributeToTree function (sdplib.h)

The Bluetooth SdpAddAttributeToTree function is used to attach an SDP attribute node to the top level of an SDP record.

Syntax

NTSTATUS SdpAddAttributeToTree(
       PSDP_TREE_ROOT_NODE        Tree,
  [in] USHORT                     AttribId,
       __drv_aliasesMem PSDP_NODE AttribValue,
  [in] ULONG                      tag
);

Parameters

Tree

The top level of the SDP record to which the SdpAddAttributeToTree function attaches the SDP attribute node.

[in] AttribId

The identifier of the attribute to attach.

AttribValue

Pointer to the SDP node to be added as an attribute.

[in] tag

Specifies a 4-byte pool tag that uniquely identifies the driver that does the memory allocation. For more information about pool tags, see ExAllocatePoolWithTag.

Return value

Possible return values include:

Remarks

Bluetooth profile drivers can obtain a pointer to this function through the BTHDDI_SDP_NODE_INTERFACE.

For more information about the tree structure, see Converting SDP Records to a Tree Structure.

Requirements

Requirement Value
Minimum supported client Versions:_Supported in Windows Vista, and later.
Target Platform Desktop
Header sdplib.h (include BthSdpddi.h)
IRQL <= PASSIVE_LEVEL

See also

BTHDDI_SDP_NODE_INTERFACE