IAssemblyLocator::GetModules method (comsvcs.h)

Used to get the names of the modules that are contained in an assembly.

Syntax

HRESULT GetModules(
  [in]  BSTR      applicationDir,
  [in]  BSTR      applicationName,
  [in]  BSTR      assemblyName,
  [out] SAFEARRAY **pModules
);

Parameters

[in] applicationDir

The directory containing the application.

[in] applicationName

The name of the application domain.

[in] assemblyName

The name of the assembly.

[out] pModules

An array listing the names of the modules in the assembly.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Requirements

Requirement Value
Minimum supported client Windows XP with SP1 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

IAssemblyLocator