πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Win 2000/XP question

#16483
From: user
Date: Sat, 10 May 2003 10:05
31 lines
2618 bytes
Juan Diego GarcοΏ½s wrote:
> Is not an excuse, Our application is really a set of 5 
 > programs that have to work together: There is an
 > applic. that makes the communication with the PLCs,
 > another one that shows the synoptique images to control
 > the station, another one that is the boss of others...
> 
> Then, when the user want to send a command to the PLC, 
 > he has to click the object that he wants (in the
 > synoptique applic.) and the boss application has to
 > show a window where the user can set the new value.
 > Then this new window has to be brought in front.
 > This is a short and quick explanation of what we make.
> 

There is an API function named AllowSetForgroundWindow()
that the foreground process can call to give permission
to another process to call SetForegroundWindow(). If you
have control of all of the programs involved, you might
be able to make use of that function, but such permission
only applies to one process at a time and only lasts until
the calling function receives some input.

Another loophole that may or may not be useful to you is
that a process can set the foreground window if was started
by the current foreground window. If you could arrange for
one application to spawn the others, they may be able force
their way in front.

By the way, I'm only speculating on things I've read. I have
no practical experience except for modifying the registry.
Technical Details
Message-ID: <3EBCCEE7.9050107@domain.invalid>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ebb8936@newsgroups.borland.com> <3EBB9BF0.5000904@domain.invalid> <VA.00001ca3.06549c53@email.address.sorry> <3ebbbe97@newsgroups.borland.com> <VA.00001ca5.06bb90b3@email.address.sorry> <3ebc31ec$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,228670448afecb0
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-10 03:12:33 PST
Message-ID: <3EBCCEE7.9050107@domain.invalid>
Date: Sat, 10 May 2003 06:05:27 -0400
From:  user@domain.invalid
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Win 2000/XP question
References: <3ebb8936@newsgroups.borland.com> <3EBB9BF0.5000904@domain.invalid> <VA.00001ca3.06549c53@email.address.sorry> <3ebbbe97@newsgroups.borland.com> <VA.00001ca5.06bb90b3@email.address.sorry> <3ebc31ec$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 151.201.32.85
X-Trace: newsgroups.borland.com 1052561149 151.201.32.85 (10 May 2003 03:05:49 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail