c# - Is it possible to enumerate the AppDomains in a remote process? -
I have seen and many blog posts related to using the mscoree.CorRuntimeHostClass.EnumDomains
method. Calculating AppDomains within the current process, but I'm thinking that there is a way to measure AppDomains within a different process on the same machine.
I want to be able to write a simple console or even WinForms app that can take a process ID and could be able to give me some information about AppDomains under that process is. Is this also possible? I think it is somewhat of that process explorer can give you a list of AppDomains for a .NET process. I just want to know how to complete it with the C # code.
This is possible, but you will need it to use the debugging API to do this The same thing as linking to you is similar, but you use different APIs and interfaces. Look for an overview and link.
Specifically, look at Carbobble Caucus and ICROPublishing Interface, then ICORProgress :: GetProcess and ICorPublishProcess :: EnumAppDomains.
Comments
Post a Comment