This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C76C7A.FA0E4E80
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

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?
------=_NextPart_000_000A_01C76C7A.FA0E4E80
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD><FONT face=3DArial><FONT size=3D2>
<BODY>
<DIV>Hi, can anybody tell me&nbsp;if it is possible to detect whether a =
process=20
has some&nbsp;AppDomain(s) hosted, and how to get the list of all the =
hosted=20
AppDomains within that process?</DIV></BODY></HTML></FONT></FONT>

------=_NextPart_000_000A_01C76C7A.FA0E4E80--

Re: How to Get the List of AppDomains in a Specific Process? by Mattias

Mattias
Thu Mar 22 01:03:30 CDT 2007

>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.

Re: How to Get the List of AppDomains in a Specific Process? by Laser

Laser
Thu Mar 22 01:34:17 CDT 2007

Thanks for your reply!
And, is there any purely managed API?

"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.
>



Re: How to Get the List of AppDomains in a Specific Process? by Mattias

Mattias
Tue Mar 27 14:48:35 CDT 2007


>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.

Re: How to Get the List of AppDomains in a Specific Process? by Jiho

Jiho
Fri Apr 06 14:51:21 CDT 2007

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

"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.