Obtaining ModuleID

Maybe someone knows any technique to obtain ModuleID of some module in .NET Profiling API 2 when all information we have is it's metadata token - mdModule and IMetaDataImport2 interface. Of course also we can use ICorProfilerInfo2 methods.
Thanx.
[258 byte] By [VitalyPimenov] at [2008-3-5]
# 1

There's no function you can call to do the translation; we usually recommend that you keep a mapping between ModuleID and MVID as you receive ModuleLoad events, and look it up that way. (MVID is obtainable from the IMetaDataImport::GetScopeProps.)

.NET Development

Site Classified