Home All Groups Group Topic Archive Search About

How to Get the List of AppDomains in a Specific Process?

Author
22 Mar 2007 4:09 AM
Laser Lu
Hi, can anybody tell me if it is possible to detect whether a process has some AppDomain(s) hosted, and how to get the list of all the hosted AppDomains within that process?

Author
22 Mar 2007 6:03 AM
Mattias Sjögren
>Hi, can anybody tell me if it is possible to detect whether a process has some AppDomain(s) hosted, and how to get the list of all the hosted AppDomains within that process?

Use the ICorPublish APIs.
http://msdn2.microsoft.com/en-us/library/ms231592.aspx


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
22 Mar 2007 6:34 AM
Laser Lu
Thanks for your reply!
And, is there any purely managed API?

Show quote
"Mattias Sj?gren" <mattias.dont.want.spam@mvps.org> wrote in message
news:Oag$afEbHHA.1400@TK2MSFTNGP06.phx.gbl...
> >Hi, can anybody tell me if it is possible to detect whether a process has
> >some AppDomain(s) hosted, and how to get the list of all the hosted
> >AppDomains within that process?
>
> Use the ICorPublish APIs.
> http://msdn2.microsoft.com/en-us/library/ms231592.aspx
>
>
> Mattias
>
> --
> Mattias Sjögren [C# MVP]  mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>
Author
27 Mar 2007 7:48 PM
Mattias Sjögren
>Thanks for your reply!
>And, is there any purely managed API?

No


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
6 Apr 2007 7:51 PM
Jiho Han
I had the same question, but I was hoping that I could find out using DbgClr
or an existing tool.  Are there no such tools?

Thanks

Show quote
"Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message
news:OTQ3ujKcHHA.4888@TK2MSFTNGP02.phx.gbl...
>
>>Thanks for your reply!
>>And, is there any purely managed API?
>
> No
>
>
> Mattias
>
> --
> Mattias Sjögren [C# MVP]  mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.

AddThis Social Bookmark Button