// sdplib.h
NTSTATUS SdpAddAttributeToTree(
PSDP_TREE_ROOT_NODE Tree,
[in] USHORT AttribId,
__drv_aliasesMem PSDP_NODE AttribValue,
[in] ULONG tag
);
View the official Windows Driver Kit DDI referenceNo description available.
The Bluetooth SdpAddAttributeToTree function is used to attach an SDP attribute node to the top level of an SDP record.
TreeThe top level of the SDP record to which the SdpAddAttributeToTree function attaches the SDP attribute node.
AttribId [in]The identifier of the attribute to attach.
AttribValuePointer to the SDP node to be added as an attribute.
tag [in]Specifies a 4-byte pool tag that uniquely identifies the driver that does the memory allocation. For more information about pool tags, see ExAllocatePoolWithTag.
Possible return values include:
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.