You have to resort to COM interop.  Purely managed applications can't 'see'
outside their current appdomain (as far as they're concerned, there appdomain is
the entire extent of their world).

If resorting to COM interop is okay, I have a sample here that demonstrates how
to enumerate processes and then appdomains within processes:

http://www.bearcanyon.com/dotnet/#corpub

-Mike
http://www.bearcanyon.com
 

> 
> -----Original Message-----
> From: Moderated discussion of advanced .NET topics. 
> [mailto:[EMAIL PROTECTED] On Behalf Of Hussein
> Sent: Tuesday, October 07, 2003 6:52 AM
> To: [EMAIL PROTECTED]
> 
> i can reach the current executing process through 
> System.Diagnostics but
> how can i reach a collection of the appdomains in this 
> process . i need to
> iterate inside these appdomains found in a specific process ?
> 
> ===================================
> This list is hosted by DevelopMentorR  http://www.develop.com
> NEW! ASP.NET courses you may be interested in:
> 
> 2 Days of ASP.NET, 29 Sept 2003, in Redmond
> http://www.develop.com/courses/2daspdotnet
> 
> Guerrilla ASP.NET, 13 Oct 2003, in Boston
> http://www.develop.com/courses/gaspdotnet
> 
> View archives and manage your subscription(s) at 
> http://discuss.develop.com
> 

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to