SdpFreeTree function (sdplib.h)

The Bluetooth SdpFreeTree function is used to free the memory allocated for the tree-based representation of an SDP record.

Syntax

NTSTATUS SdpFreeTree(
  [in] PSDP_TREE_ROOT_NODE Tree
);

Parameters

[in] Tree

The root node of the SDP tree-based representation to be freed.

Return value

Possible return values include:

Remarks

Callers should perform an SdpFreeTree call when the tree-based representation of an SDP record is no longer needed. The SdpCreateNodeTree and SdpConvertStreamToTree functions allocate the memory for the tree representations of SDP records that they create. The SdpFreeTree function releases the memory allocated to the SDP_TREE_ROOT_NODE structure that these functions create and all SDP_NODE structures associated with the tree representation.

Bluetooth profile drivers can obtain a pointer to the SdpFreeTree function through the BTHDDI_SDP_NODE_INTERFACE 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

SDP_NODE

SDP_TREE_ROOT_NODE

SdpConvertStreamToTree

SdpCreateNodeTree