Skip to content

Latest commit

 

History

History
108 lines (78 loc) · 3.44 KB

nf-sdplib-sdpcreatenodeuuid16.md

File metadata and controls

108 lines (78 loc) · 3.44 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:sdplib.SdpCreateNodeUUID16
SdpCreateNodeUUID16 function (sdplib.h)
The Bluetooth SdpCreateNodeUUID16 function is used to allocate and initialize an SDP_NODE structure to a 16-bit UUID type.
bltooth\sdpcreatenodeuuid16.htm
bltooth
04/27/2018
SdpCreateNodeUUID16 function
SdpCreateNodeUUID16, SdpCreateNodeUUID16 function [Bluetooth Devices], bltooth.sdpcreatenodeuuid16, bth_funcs_adf751aa-5dca-4356-8c15-84a4996acef9.xml, sdplib/SdpCreateNodeUUID16
sdplib.h
BthSdpddi.h
Desktop
Versions:\_Supported in Windows Vista, and later.
<= PASSIVE_LEVEL
Windows
SdpCreateNodeUUID16
sdplib/SdpCreateNodeUUID16
APIRef
kbSyntax
HeaderDef
sdplib.h
SdpCreateNodeUUID16

SdpCreateNodeUUID16 function

-description

The Bluetooth SdpCreateNodeUUID16 function is used to allocate and initialize an SDP_NODE structure to a 16-bit UUID type.

-parameters

-param uuidVal2

The 16-bit UUID value that is used to initialize the SDP_NODE structure.

-param tag [in]

A profile driver defined tag to associate with the node.

-returns

If successful, this function returns a pointer to the newly allocated SDP_NODE structure. If not successful, this function returns NULL.

-remarks

After the SdpCreateNodeUUID16 function allocates an SDP_NODE structure, it initializes the structure in the following ways.

It ensures that the SDP_NODE structure's data type and data size fields are set appropriately.

It ensures that the pointer members of the associated SDP_NODE_HEADER structure are initialized to point to the node itself. This creates a valid list with only one element.

It ensures that the value parameter passed to the function is copied to the appropriate element of the SDP_NODE_DATA union that is associated with the SDP_NODE structure.

The data associated with the SdpCreateNodeUUID16 function is copied into the node, and the original data can be freed at any time.

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

-see-also

BTHDDI_SDP_NODE_INTERFACE

SDP_NODE

SDP_NODE_DATA

SDP_NODE_HEADER