ITcSysManager6::TryLookupTreeItem

Like ITcSysManager::LookupTreeItem, but returns VARIANT_FALSE if the item is not found, without setting an HRESULT error.

Signature

HRESULT TryLookupTreeItem(BSTR bstrItem, ITcSmTreeItem** pipItem, VARIANT_BOOL* pbFound);

Parameter

Name

Type

Description

bstrItem

BSTR

[in] Path name of the Tree Item.

pipItem

ITcSmTreeItem**

[out] Resolved Tree Item; nullptr if not found.

Return value

Name

Type

Description

pbFound

VARIANT_BOOL*

[out, retval] VARIANT_TRUE, if pipItem has been set.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

See also