Share via


ISdpNodeContainer::GetNodeStringData

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method retrieves the contents of a string or URL node.

Syntax

HRESULT GetNodeStringData(
  ULONG nodeIndex,
  NodeData* pData
);

Parameters

  • nodeIndex
    [in] Zero-based index of the node within the container.
  • pData
    [in, out] On input or output, pointer to the NodeData structure containing the string.

Return Value

None.

Remarks

If NodeData::u.url.val is non-null, NodeData::u.url.length indicates the length of the supplied buffer. If the supplied buffer is shorter than the total length of the contents of the node, the length of the buffer is copied over and S_FALSE is returned.

If NodeData::u.url.val is NULL, ISdpNodeContainer allocates a buffer, copies the contents over, and assigns the buffer to NodeData::u.url.length. In this case, NodeData::u.url.length is set to the length of the buffer. The CoTaskMemFree function must be called to free the buffer allocated by ISdpNodeContainer.

Requirements

Header bthapi.h, bthapi.idl
Library Btdrt.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

NodeData
ISdpNodeContainer

Other Resources

CoTaskMemFree