🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Detect system tray apps on WinXP?

#12031
From: Muzzy
Date: Mon, 29 Dec 2003 22:43
22 lines
1853 bytes
Hi,
I can't find a way to get a list launched of programms(pprocesses?) 
which put an icon in the system tray. My program connects to an ip 
address thru a VPN and obviously it's able to do so only if VPN Client 
is launched. So i need to find a way to detect if the VPN client is 
launched or not.
Pinging the ip address is not a resolution, because it just doesn't 
respond to ping command(firewall?), and also VPN client is 3rd party 
app, so i can't hook into it.

What i've done is my program reads all windows' titles using 
GetWindowText and find a window with that title. But on WinXP it doesn't 
work for some wierd reason - it just doesn't see that window, thou VPN 
Client DOES NOT launch as a service, but as a regular program.

So i thought that i could resolve the issue just obtaining info about 
system tray icons and their processes and detect VPN Client that way...

Any suggestions are highly appreciated!

Thank you,
Andrey
Technical Details
Message-ID: <3ff0ae1f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,caccac534838d864,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-29 15:09:55 PST
Date: Mon, 29 Dec 2003 17:43:32 -0500
From: Muzzy <leyandrew@yahoo.com>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Detect system tray apps on WinXP?
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.91.233.60
Message-ID: <3ff0ae1f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1072737823 24.91.233.60 (29 Dec 2003 14:43:43 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail