Article View: borland.public.cppbuilder.nativeapi
Article #16070Re: obtain the full path and filename for the executable file associated with a given process
From: Stefano Bonifazi
Date: Mon, 02 Jun 2003 20:44
Date: Mon, 02 Jun 2003 20:44
20 lines
1917 bytes
1917 bytes
Hi Mr. Vladimir:) It has been a long time... I hope You're really fine! Thank You very much for your reply ... I must confess I don't know anything about the WMI; I guessed its "power" when I was looking about how to get the CPU speed, but I didn't know where to start from ... I hope Your code will enlight the way:) My best regards, Stefano B. "Vladimir Afanasyev" <avv@systema.kiev.ua> ha scritto nel messaggio news:3edb1d99$1@newsgroups.borland.com... > > > You can use WMI for this. One from my samples do it: > http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=19443 > But WMI native only for Win2000/XP. For Win95/98/NT4 you need > install WMI Core (from MS site). And no guarantee that WMI > class for process existed for WMI Core. > > Vladimir.
Technical Details
Message-ID:
<3edbb72b@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!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3edb05ea$1@newsgroups.borland.com> <3edb1d99$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 13:48:02 PST Reply-To: "Stefano Bonifazi" <stefboombastic@libero.it> From: "Stefano Bonifazi" <stefboombastic@libero.it> Newsgroups: borland.public.cppbuilder.nativeapi References: <3edb05ea$1@newsgroups.borland.com> <3edb1d99$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 22:44:21 +0200 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 151.24.134.202 Message-ID: <3edbb72b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054586667 151.24.134.202 (2 Jun 2003 13:44:27 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail