Partager via


ICorProfilerInfo::GetModuleInfo Method

Gets information about the specified module.

HRESULT GetModuleInfo(
    [in]  ModuleID   moduleId,
    [out] LPCBYTE    *ppBaseLoadAddress,
    [in]  ULONG      cchName,
    [out] ULONG      *pcchName,
    [out, size_is(cchName), length_is(*pcchName)]
          WCHAR      szName[] ,
    [out] AssemblyID *pAssemblyId);

Parameters

Parameter Description

moduleId

[in] The ID of the module for which information will be retrieved.

ppBaseLoadAddress

[out] The base address at which the module is loaded.

cchName

[in] The maximum length of the szName buffer.

pcchName

[out] The length of the module's file name that is returned.

szName

[out] The file name of the module.

pAssemblyId

[out] The ID of the module's parent assembly.

Remarks

For dynamic modules, the szName parameter will be an empty string, and the base address will be 0.

Although the GetModuleInfo method may be called as soon as the module's ID exists, the ID of the parent assembly will not be available until the profiler receives the ICorProfilerCallback::ModuleAttachedToAssembly Method callback.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Reference

ICorProfilerInfo Interface