๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
4 messages
4 total messages Started by Gintaras Kekys Mon, 31 Mar 2003 08:19
How do I get a list of running processes?
#17235
Author: Gintaras Kekys
Date: Mon, 31 Mar 2003 08:19
7 lines
999 bytes
Hi.

How do I get a list of running processes along with their Ids? I need find
and kill process by it's name.

Gintaras
Lithuania
Re: How do I get a list of running processes?
#17236
Author: nicolasr
Date: Mon, 31 Mar 2003 09:26
22 lines
1631 bytes
Hi,

the WinAPI help has a chapter "Microsoft Programmers guide to Windows 95".
Here you'll find documentation of the Tool help library. Especially have a
look at the functions Process32First/Process32Next. There is also example
code on how to get a list of all processes. Enter "Taking a snapshot and
viewing processes" in the help index and you should find it.

hope it helps,
Nick

"Gintaras Kekys" <gintaras@sb.lt> escribi๏ฟฝ en el mensaje
news:3e87fb2b$1@newsgroups.borland.com...
> Hi.
>
> How do I get a list of running processes along with their Ids? I need find
> and kill process by it's name.
>
> Gintaras
> Lithuania
>
>
Re: How do I get a list of running processes?
#17237
Author: Vladimir Afanasyev
Date: Mon, 31 Mar 2003 09:38
18 lines
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.
Re: How do I get a list of running processes?
#17366
Author: CapStick
Date: Sat, 05 Apr 2003 19:25
31 lines
1878 bytes
"Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message
news:3e880c8b$1@newsgroups.borland.com...
>
> 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.

you may find a prog on codecentral of use its called KillProc.c



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.463 / Virus Database: 262 - Release Date: 17/03/2003
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads