🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A filename by Handle

#12305
From: Igor Tsukanov
Date: Tue, 16 Dec 2003 07:41
24 lines
1681 bytes
"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote:
>
>"Igor Tsukanov" <darl@mail.com> wrote in message
>news:3fdeb189$1@newsgroups.borland.com...
>
>> How can I get a name of executable file by defined window handle?
>
>There is no direct way to do that.  You will have to use
>GetWindowThreadProcessId() to get the window's process ID, and then
>enumerate the currently running processes on the machine until you find a
>process with a matching ID, at which time you will then know the filename as
>well.  To enumerate the processes, have a look at the following article
>
>    HOWTO: Enumerate Applications Using Win32 APIs
>    http://support.microsoft.com/default.aspx?scid=kb;EN-US;q175030
>
>
>Gambit

Thanks

Best regards
Bye from darl@mail.com
Technical Details
Message-ID: <3fdec53d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fdeb189$1@newsgroups.borland.com> <3fdec0a3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,61480269f5926318
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-16 01:09:22 PST
From: "Igor Tsukanov" <darl@mail.com>
Sender: "Igor Tsukanov" <darl@mail.com>
Reply-To: "Igor Tsukanov" <darl@mail.com>
Subject: Re: A filename by Handle
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 212.35.162.114     
X-Forwarded-For: unknown
References: <3fdeb189$1@newsgroups.borland.com> <3fdec0a3$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3fdec53d$1@newsgroups.borland.com>
Date: 16 Dec 2003 00:41:33 -0700
X-Trace: newsgroups.borland.com 1071564093 207.105.83.66 (16 Dec 2003 00:41:33 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail