WSDXMLAddChild function (wsdutil.h)

Adds a child element.

Syntax

HRESULT WSDXMLAddChild(
  WSDXML_ELEMENT *pParent,
  WSDXML_ELEMENT *pChild
);

Parameters

pParent

Reference to a WSDXML_ELEMENT structure that contains the parent element.

pChild

Reference to a WSDXML_ELEMENT structure that contains the child element.

Return value

This function can return one of these values.

Return code Description
S_OK
Method completed successfully.
E_INVALIDARG
pParent is NULL, pChild is NULL, pChild already has a parent, or a sibling could not be added to an existing child of pParent.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsdutil.h (include Wsdapi.h)
Library Wsdapi.lib
DLL Wsdapi.dll