Partager via


SdpAddAttributeToTree, fonction (sdplib.h)

La fonction Bluetooth SdpAddAttributeToTree est utilisée pour attacher un nœud d’attribut SDP au niveau supérieur d’un enregistrement SDP.

Syntaxe

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

Paramètres

Tree

Niveau supérieur de l’enregistrement SDP auquel la fonction SdpAddAttributeToTree attache le nœud d’attribut SDP.

[in] AttribId

Identificateur de l’attribut à attacher.

AttribValue

Pointeur vers le nœud SDP à ajouter en tant qu’attribut.

[in] tag

Spécifie une balise de pool de 4 octets qui identifie de manière unique le pilote qui effectue l’allocation de mémoire. Pour plus d’informations sur les balises de pool, consultez ExAllocatePoolWithTag.

Valeur de retour

Les valeurs de retour possibles sont les suivantes :

Remarques

Les pilotes de profil Bluetooth peuvent obtenir un pointeur vers cette fonction via le BTHDDI_SDP_NODE_INTERFACE.

Pour plus d’informations sur la structure d’arborescence, consultez Conversion d’enregistrements SDP en arborescence.

Exigences

Exigence Valeur
client minimum pris en charge Versions :_Supported dans Windows Vista et versions ultérieures.
plateforme cible Bureau
d’en-tête sdplib.h (include BthSdpddi.h)
IRQL <= PASSIVE_LEVEL

Voir aussi

BTHDDI_SDP_NODE_INTERFACE