Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Feb : Comminucating with another desktop

www.cryer.info
Managed Newsgroup Archive

Comminucating with another desktop

Subject:Comminucating with another desktop
Posted by:"UlfH" (ulf_honkanen@nospam.umu.se)
Date:Fri, 8 Feb 2008 13:33:01

Hello!

I can detect when another instance of my program is running even in some
other desktop by using a mutex with the Global\ prefix. So far so good.

Now, I would like to make **the other** instance aware, that "hey, a new
instance is running now". In a normal case, when the 2 instances are running
in the same context, I can use PostMessage and all is fine and dandy, but
when running in different desktops, like different parallel users on Server
2003 or with FastSwitch on XP, you canot use messages to communicate.

How could I , the easiest way posible , communicate with the other instance
without the overhead of , say, some TCP/IP solution, which feels overkill
just for that trivial task?

Replies:

www.cryer.info
Managed Newsgroup Archive