🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: program start detection question

#15069
From: micheal davis
Date: Sat, 19 Jul 2003 00:03
37 lines
2368 bytes
Thanks Remy for your reply.

Actually I've viewed the SetWindowsHookEx() function in the msdn site and it
seems quite interesting.

Now concerning the hooks for detecting when new windows are being created,
will this cause to have a return value from the SetWindowsHookEx() function
when for example the (notepad.exe) is starting to load? cause if this is
correct, so that is all what I need...

( BTW I am really new to using API)

thanks for your help...


"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f188794$1@newsgroups.borland.com...
>
> "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: <3f188ab7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f18866a@newsgroups.borland.com> <3f188794$1@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:09:18 PST
From: "micheal davis" <micheal_davis@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f18866a@newsgroups.borland.com> <3f188794$1@newsgroups.borland.com>
Subject: Re: program start detection question
Date: Fri, 18 Jul 2003 16:03:03 -0800
Lines: 39
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: 212.103.167.35
Message-ID: <3f188ab7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058572983 212.103.167.35 (18 Jul 2003 17:03:03 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail