Article View: borland.public.cppbuilder.nativeapi
Article #12032Re: Detect system tray apps on WinXP?
From: Remy Lebeau (TeamB)
Date: Tue, 30 Dec 2003 00:06
Date: Tue, 30 Dec 2003 00:06
25 lines
1745 bytes
1745 bytes
"Muzzy" <leyandrew@yahoo.com> wrote in message
news:3ff0ae1f$1@newsgroups.borland.com...
> I can't find a way to get a list launched of programms
> (pprocesses?) which put an icon in the system tray.
There is no such list.
> My program connects to an ip address thru a VPN and
> obviously it's able to do so only if VPN Client is launched.
That has nothing to do with whether a tray icon is used or not.
> So i need to find a way to detect if the VPN client is launched or not.
Just enumerate all of the currently running processes, checking to see if
any of them have the VPN client's actual filename. Have a look at the
following article for information on how to do that:
HOWTO: Enumerate Applications Using Win32 APIs
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q175030
Gambit
Technical Details
Message-ID:
<3ff0c02d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3ff0ae1f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,caccac534838d864 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-29 16:09:42 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ff0ae1f$1@newsgroups.borland.com> Subject: Re: Detect system tray apps on WinXP? Date: Mon, 29 Dec 2003 16:06:09 -0800 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.139.199 Message-ID: <3ff0c02d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072742445 67.22.139.199 (29 Dec 2003 16:00:45 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail