Article View: borland.public.cppbuilder.nativeapi
Article #9679Re: FindWindow in different session in XP
From: Alan Bellingham
Date: Tue, 29 Jun 2004 17:33
Date: Tue, 29 Jun 2004 17:33
25 lines
2017 bytes
2017 bytes
"Eugene Mayevski [SecureBlackbox]" <mayevski@eldos.org> wrote: >Remy Lebeau (TeamB) wrote: > >>>What about Memory Mapped files?? >> They could be used, although those aren't really meant for communication, >> just data sharing. > >Where did you read this? The thing about shared memory is it's just that. It's shared. You still have to know to see whether something has changed. Once you know something _has_ changed, of course, then it's not a problem - shared memory is an efficient way of getting large chunks of data from one executable to another. It's just that it's a horribly bad way of sending a message in the first place, because your code would have to sit in a loop looking for the change. Basically, you need another way to communicate first. WaitForSingleObject is one way. Alan Bellingham -- ACCU Conference 2005 - 20-23 April, Randolph Hotel, Oxford, UK
Technical Details
Message-ID:
<0j73e05iflo1e9g0266c3kemi0apicv3og@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!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> <40e0519c@newsgroups.borland.com> <40E05E24.A503C53A@tomtec.com> <40e06df1@newsgroups.borland.com> <40e16448@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 From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: FindWindow in different session in XP Date: Tue, 29 Jun 2004 18:33:00 +0100 Reply-To: alanb@episys.com Message-ID: <0j73e05iflo1e9g0266c3kemi0apicv3og@4ax.com> References: <40DC8965.698A31F6@tomtec.com> <40dc945c$2@newsgroups.borland.com> <40E01817.DAEBAD67@tomtec.com> <40e0519c@newsgroups.borland.com> <40E05E24.A503C53A@tomtec.com> <40e06df1@newsgroups.borland.com> <40e16448@newsgroups.borland.com> X-Newsreader: Forte Agent 2.0/32.646 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 193.129.251.130 X-Trace: newsgroups.borland.com 1088530379 193.129.251.130 (29 Jun 2004 10:32:59 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail