ITcSmTreeItem::CreateChild

Creates a new child below the current item. Not every item type supports this operation; in that case, E_NOTIMPL is returned.

Signature

HRESULT CreateChild(BSTR bstrName, long nSubType, BSTR bstrBefore, VARIANT vInfo, ITcSmTreeItem** pipItem);

Parameter

Name

Type

Description

bstrName

BSTR

[in] Name of the new child.

nSubType

long

[in, defaultvalue(0)] SubType of the new child.

bstrBefore

BSTR

[in, defaultvalue(L"")] Optional name of the child before which the insertion will take place.

vInfo

VARIANT

[in, optional] Additional structured information.

Return value

Name

Type

Description

pipItem

ITcSmTreeItem**

[out, retval] Newly created Tree Item.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes