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 | [out, retval] Enumerator of the found module instances. | |
(HRESULT) | HRESULT |
|
Error codes
E_POINTER: One of the required pointers, orbstrModuleType, isNULL.E_INVALIDARG: The type name is empty, or no instance of this type was found.E_OUTOFMEMORY: The temporary results array could not be created.- Additional errors:
QueryInterfaceor ModuleTypeName failed for a found TCom object.