AppDomain access via ICorRuntimeHost

468 Views Asked by At

I need to enumerate AppDomains, loaded into CLR. But I need to do that from unmanaged code (in C++). I think, I should use ICorRuntimeHost. It contains methods for AppDomains enumeration. ICorRuntimeHost::NextDomain returns IUnknown* for current AppDomain. Which interface I need to use to access this AppDomain without enabling CLR support in my code?

1

There are 1 best solutions below

0
Viacheslav Kovalev On BEST ANSWER

Solved. I was only needed to #import <mscorlib.tlb>.