ITcLicenseDescCollection::TryLookup

Looks up a license descriptor by its GUID without treating a failed lookup as a hard error. The result is also reported via pbFound.

Signature

HRESULT TryLookup(BSTR guidLic, ITcLicenseDesc** ppLic, VARIANT_BOOL* pbFound);

Parameter

Name

Type

Description

guidLic

BSTR

[in] GUID of the license being searched for, as a string.

Return value

Name

Type

Description

ppLic

ITcLicenseDesc**

[out] License descriptor found.

pbFound

VARIANT_BOOL*

[out, retval] VARIANT_TRUE if a matching entry exists.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.