🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9652

Re: FindWindow in different session in XP

#9652
From: Fred W.
Date: Mon, 28 Jun 2004 13:07
28 lines
2027 bytes
>> I need to "SendMessage" a WM_COPYDATA message to
>> a process running in Session 0 from the session for the current
>> logged in user.

>Why?

I am developing a service which needs to communicate with a user
application using inter-process communications.  I believe I read
somewhere that all System services start in Session 0. Thus only the
user who logs in and gets Session 0 can communicate with my service
because I am using  WIndows MEssaging to send data back and forth
between the two processes.   When the next user logs in his Session ID
is not zero and cannot communicate with my service. I am now considering
other solutions.

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 terminate when the
user logs off. But I am not sure if spawning a process from one session
into another is possible.

The other obvious thought is too rewrite my code using a better IPC
method that can more easily handle the multi-session scenario.

Any addition comments are appreciated.


- Fred
Technical Details
Message-ID: <40E01817.DAEBAD67@tomtec.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40DC8965.698A31F6@tomtec.com> <40dc945c$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,21a49dd150875d21
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <40E01817.DAEBAD67@tomtec.com>
Date: Mon, 28 Jun 2004 09:07:35 -0400
From: "Fred W." <fwestphal@tomtec.com>
X-Mailer: Mozilla 4.61 [en] (X11; I; UnixWare 5 i386)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: FindWindow in different session in XP
References: <40DC8965.698A31F6@tomtec.com> <40dc945c$2@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 206.105.29.24
X-Trace: newsgroups.borland.com 1088428057 206.105.29.24 (28 Jun 2004 06:07:37 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail