🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

FindWindow in different session in XP

#9639
From: Fred W.
Date: Fri, 25 Jun 2004 20:21
11 lines
1350 bytes
Is it possible to get the the "handle to a window" that is running in
another session in Windows XP? I need to "SendMessage" a WM_COPYDATA
message to a process running in Session 0 from the session for the
current logged in user. Previously, I would use "FindWindow" in Window
2000 and below to send the message, but now under XP that scheme no
longer works since XP has added Fast User Switching with Multiple
Desktop Sessions and  it appears that each session maintains a seperate
WIndows List. Any help or suggestions are appreciated.


- Fred
Technical Details
Message-ID: <40DC8965.698A31F6@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

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,21a49dd150875d21,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <40DC8965.698A31F6@tomtec.com>
Date: Fri, 25 Jun 2004 16:21:57 -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: FindWindow in different session in XP
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 206.105.29.24
X-Trace: newsgroups.borland.com 1088194917 206.105.29.24 (25 Jun 2004 13:21:57 -0700)
Lines: 12
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