Article View: borland.public.cppbuilder.nativeapi
Article #16064Re: obtain the full path and filename for the executable file associated with a given process
From: Remy Lebeau (TeamB)
Date: Mon, 02 Jun 2003 16:32
Date: Mon, 02 Jun 2003 16:32
17 lines
1634 bytes
1634 bytes
"Stefano Bonifazi" <stefboombastic@libero.it> wrote in message
news:3edb05ea$1@newsgroups.borland.com...
> I would like to get the obtain the full path and filename
> for the executable file associated with a given process
> whose identifier I know...
You will have to enumerate all of the running processes, obtaining the
process information about each one until you find a matching process ID to
the one you already have, at which time you will have the filename as well:
HOWTO: Enumerate Applications Using Win32 APIs
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q175030
Gambit
Technical Details
Message-ID:
<3edb7b83$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3edb05ea$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,6b0bea3622ac4fd0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-02 09:35:56 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3edb05ea$1@newsgroups.borland.com> Subject: Re: obtain the full path and filename for the executable file associated with a given process Date: Mon, 2 Jun 2003 09:32:52 -0700 Lines: 19 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: 207.175.226.26 Message-ID: <3edb7b83$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054571395 207.175.226.26 (2 Jun 2003 09:29:55 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail