🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

how to get the running process in the system

#10934
From: davichu
Date: Fri, 05 Mar 2004 17:19
15 lines
1431 bytes
I need to know how to get the names of the process running in the system,
for example : winword.exe, explorer.exe and so on.


There is an example named 'Procview' witch shows the running window's
caption, the follow functions are used:

  EnumWindows((WNDENUMPROC)EnumProc, lp);
     GetWindowThreadProcessId(hWnd, pPid);
        GetWindowText (hWnd, titlewindow, 110)


But I don't  nedd the captions, I need the name of the process .

best regards.
Technical Details
Message-ID: <4048ef9c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.linkpendium.com!news.moat.net!lon-transit.news.telstra.net!lon-in.news.telstra.net!news.telstra.net!202.12.144.25.MISMATCH!mws-stat-syd.cdn.telstra.com.au!newsx!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b9338c4feb94156f,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-05 13:40:23 PST
From: "davichu" <dmarquezl arroba hotmail punto com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: how to get the running process in the system
Date: Fri, 5 Mar 2004 18:19:54 +0100
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 200.75.9.107
Message-ID: <4048ef9c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1078521756 200.75.9.107 (5 Mar 2004 13:22:36 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.linkpendium.com!news.moat.net!lon-transit.news.telstra.net!lon-in.news.telstra.net!news.telstra.net!202.12.144.25.MISMATCH!mws-stat-syd.cdn.telstra.com.au!newsx!newsgroups.borland.com!not-for-mail