Article View: borland.public.cppbuilder.nativeapi
Article #17237Re: How do I get a list of running processes?
From: Vladimir Afanasyev
Date: Mon, 31 Mar 2003 09:38
Date: Mon, 31 Mar 2003 09:38
18 lines
1561 bytes
1561 bytes
Hi, "Gintaras Kekys" <gintaras@sb.lt> wrote: >Hi. > >How do I get a list of running processes along with their Ids? I need find >and kill process by it's name. You can use WMI for it. WMI native for Win2000/XP but for Win95/98/NT you need to install WMI Core: Let us try WMI (samples) http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=19443 Another way you can find in the follow page: HOWTO: Enumerate Applications Using Win32 APIs http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B175030 Vladimir.
Technical Details
Message-ID:
<3e880c8b$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!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.media.kyoto-u.ac.jp!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e87fb2b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,6d46149fafc69d7b X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-31 01:42:49 PST From: "Vladimir Afanasyev" <avv@systema.kiev.ua> Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua> Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua> Subject: Re: How do I get a list of running processes? Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.244.14.114 62.244.14.114 X-Forwarded-For: 192.168.0.147 References: <3e87fb2b$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3e880c8b$1@newsgroups.borland.com> Date: 31 Mar 2003 01:38:19 -0800 X-Trace: newsgroups.borland.com 1049103499 207.105.83.65 (31 Mar 2003 01:38:19 -0800) Lines: 18 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!newsfeed.media.kyoto-u.ac.jp!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail