ITcModuleManager2::TryLookupModule
Initialize pipModules with NULL and pbFound with VARIANT_FALSE, then search for all module instances with matching module type names. If matches are found, an ITcEnumModuleInstances enumerator is returned over the found ITcModuleInstance2 objects, and pbFound is set to VARIANT_TRUE.
Signature
HRESULT TryLookupModule(BSTR bstrModuleType, ITcEnumModuleInstances** pipModules, VARIANT_BOOL* pbFound);
Parameter
Name | Type | Description |
|---|---|---|
bstrModuleType | BSTR | [in] Sought-after module type name. |
Return value
Name | Type | Description |
|---|---|---|
pipModules | [out] Enumerator of the found module instances or | |
pbFound | VARIANT_BOOL* | [out, retval] |
(HRESULT) | HRESULT |
|
Error codes
E_POINTER:pipModules,pbFound, orbstrModuleTypeisNULL.E_INVALIDARG: The type name is empty.E_OUTOFMEMORY: The temporary results array could not be created.- Other errors:
QueryInterfaceor ModuleTypeName failed for a module instance.