Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / April 2006

Tip: Looking for answers? Try searching our database.

Can GetActiveObject find multiple running objects?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christopher - 21 Apr 2006 10:19 GMT
Hi,
I can use Marshal.GetActiveObject to attach to a running instance of some
application. I can then use Type.InvokeMember to control it.
My question is how to attach to a SPECFIC running instance of some
application when there may be two instances running.
How do I distinguish between them?

GetActiveObject will only return the first instance it encounters.

Any ideas or tips on a direction to take will be much appreciated.

Cheers, Chris.
Mattias Sjögren - 21 Apr 2006 20:44 GMT
Christopher,

>My question is how to attach to a SPECFIC running instance of some
>application when there may be two instances running.
>How do I distinguish between them?

If they are all registered in the Running Object Table (ROT) with
unique monikers you can get them that way. Check out the
GetRunningObjectTable and related APIs.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.