🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: program start detection question

#15068
From: Remy Lebeau (TeamB)
Date: Fri, 18 Jul 2003 23:54
18 lines
1681 bytes
"micheal davis" <micheal_davis@hotmail.com> wrote in message
news:3f18866a@newsgroups.borland.com...

> I need to know if there is any API, function that can tell
> me when a user is trying to run any other application
> (ex. msword, notepad..etc) while my application is running ?

Nope, sorry.  For that, you'd probably have to simply run a timer/thread
that periodically retreives the system's current process list and then
manually scan through it looking for new entries.

There are hooks for detecting when new windows are being created, however.
Look at SetWindowsHookEx().  That might not be what you are looking for,
though.


Gambit
Technical Details
Message-ID: <3f188794$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!hermes.visi.com!news-out.visi.com!petbe.visi.com!news-out1.nntp.be!propagator2-sterling!In.nntp.be!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f18866a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9f5ad18ed5a65075
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-18 17:04:02 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f18866a@newsgroups.borland.com>
Subject: Re: program start detection question
Date: Fri, 18 Jul 2003 16:54:38 -0700
Lines: 20
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.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f188794$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058572180 207.175.226.26 (18 Jul 2003 16:49:40 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!hermes.visi.com!news-out.visi.com!petbe.visi.com!news-out1.nntp.be!propagator2-sterling!In.nntp.be!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail