ITcLibraryManager::GetLibraryIecDeclaration

Reads a library's IEC declaration using bstrLibraryId. If bTryToLoad is set to VARIANT_TRUE, the missing library description can be loaded later as needed.

Signature

HRESULT GetLibraryIecDeclaration(BSTR bstrLibraryId, VARIANT_BOOL bTryToLoad, BSTR* pIecDeclaration);

Parameter

Name

Type

Description

bstrLibraryId

BSTR

[in] Unique library ID of the library to be resolved.

bTryToLoad

VARIANT_BOOL

[in, defaultvalue(-1)] Controls whether loading is attempted during lookup (VARIANT_TRUE enabled).

Return value

Name

Type

Description

pIecDeclaration

BSTR*

[out, retval] IEC declaration of the library as a string.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes