Article View: borland.public.cppbuilder.nativeapi
Article #9654Re: FindWindow in different session in XP
From: Remy Lebeau (TeamB)
Date: Mon, 28 Jun 2004 17:09
Date: Mon, 28 Jun 2004 17:09
28 lines
1950 bytes
1950 bytes
"Fred W." <fwestphal@tomtec.com> wrote in message news:40E01817.DAEBAD67@tomtec.com... > I am developing a service which needs to communicate > with a user application using inter-process communications. You can't use window messages for that anyway. Services run under a completely different desktop and workstation to begin with, thus a service could not find, let alone send messages to, a window on a different desktop, and vice versa. For IPC with a service, you should use ActiveX/COM, RPC, Named Pipes, or TCP sockets instead. > One thought is too somehow have the service spawn a > process in the active session. I could than preserve the > Windows Messaging protocol I have already developed. The spawned process would still be running in a different desktop/workstation than the service, thus window messages still unusable. > The other obvious thought is too rewrite my code using a > better IPC method that can more easily handle the > multi-session scenario. Yes. Gambit
Technical Details
Message-ID:
<40e0519c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40DC8965.698A31F6@tomtec.com> <40dc945c$2@newsgroups.borland.com> <40E01817.DAEBAD67@tomtec.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,21a49dd150875d21 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40DC8965.698A31F6@tomtec.com> <40dc945c$2@newsgroups.borland.com> <40E01817.DAEBAD67@tomtec.com> Subject: Re: FindWindow in different session in XP Date: Mon, 28 Jun 2004 10:09:15 -0700 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.169.168.124 Message-ID: <40e0519c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1088442780 68.169.168.124 (28 Jun 2004 10:13:00 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail