ITcModuleManager2::LookupModule

Calls TryLookupModule and returns S_OK if there is at least one match. If no module is found, the method returns E_INVALIDARG and sets an ErrorInfo with a message stating that the module type was not found.

Signature

HRESULT LookupModule(BSTR bstrModuleType, ITcEnumModuleInstances** pipModules);

Parameter

Name

Type

Description

bstrModuleType

BSTR

[in] Sought-after module type name.

Return value

Name

Type

Description

pipModules

ITcEnumModuleInstances**

[out, retval] Enumerator of the found module instances.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes