Bewerken

Delen via


SDP_TREE_ROOT_NODE structure (sdpnode.h)

The SDP_TREE_ROOT_NODE structure is the root element of a tree-based representation of an SDP record.

Syntax

typedef struct _SDP_TREE_ROOT_NODE {
  SDP_NODE RootNode;
} SDP_TREE_ROOT_NODE, *PSDP_TREE_ROOT_NODE;

Members

RootNode

An SDP_NODE structure that represents the root node of a tree-based representation of an SDP record.

Remarks

Several SDP functions access or output this structure when they build a tree-based SDP record or convert a raw SDP record stream into a tree-based record.

The SdpAddAttributeToTree function adds an SDP_NODE structure that contains SDP attribute information to an existing SDP_TREE_ROOT_NODE structure.

The SdpConvertStreamToTree function outputs this structure as the root element of an SDP record that it converts from a stream to a tree-based structure.

The SdpConvertTreeToStream function uses an existing SDP_TREE_ROOT_NODE structure as input when it converts a tree-based representation of an SDP record into a stream.

The SdpCreateNodeTree function creates an empty SDP_TREE_ROOT_NODE structure. This is the first step in creating an SDP record as a tree. After the SDP tree is completed, a profile driver that is using SDP to advertise its service can convert the tree into an SDP record stream using the SdpConvertTreeToStream function.

The SdpFindAttributeInTree function searches a populated SDP_TREE_ROOT_NODE structure for an SDP attribute value.

Requirements

Requirement Value
Minimum supported client Versions:_Supported in Windows Vista, and later.
Header sdpnode.h (include Sdpnode.h)

See also

SDP_NODE

SdpAddAttributeToTree

SdpConvertStreamToTree

SdpConvertTreeToStream

SdpCreateNodeTree

SdpFindAttributeInTree