Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting process status info

1 view
Skip to first unread message

DaveL

unread,
Oct 10, 1996, 3:00:00 AM10/10/96
to

Is there a Win32 API call or console command
in NT that acts like the Unix "ps" command,
which gives status of all processes running
on the system? I'd prefer to execute this as
a function call from a C program.

Claus André Färber

unread,
Oct 12, 1996, 3:00:00 AM10/12/96
to

Hallo DaveL, hallo alle zusammen,

DaveL <dlo...@tricord.com> schrieb am 10.10.96:

Look up:
CreateToolhelp32Snapshot
Process32First
Process32Next

--
Claus André Färber <cl...@faerber.muc.de>, <http://www.muc.de/~cfaerber/>

J. Wesley Cleveland

unread,
Oct 14, 1996, 3:00:00 AM10/14/96
to

cl...@faerber.muc.de (=?ISO-8859-1?Q?Claus_Andr=E9_F=E4rber?=) wrote:

These work under 95, but not under NT.
jw...@oro.net


David Jackman

unread,
Oct 14, 1996, 3:00:00 AM10/14/96
to

These functions are only implemented in Windows 95. No version of NT has
them. For NT, you get this information from the registry. Take a look at
the PViewer source that comes with the Win32 SDK, or check out the "Under
the Hood" columns in the March and April '96 issues of MSJ .

..David..

Claus André Färber <cl...@faerber.muc.de> wrote in article
<6IidU...@faerber.muc.de>...

Poli Chen

unread,
Dec 13, 1996, 3:00:00 AM12/13/96
to

cl...@faerber.muc.de (=?ISO-8859-1?Q?Claus_Andr=E9_F=E4rber?=) wrote:

>Hallo DaveL, hallo alle zusammen,

>DaveL <dlo...@tricord.com> schrieb am 10.10.96:
>> Is there a Win32 API call or console command
>> in NT that acts like the Unix "ps" command,
>> which gives status of all processes running
>> on the system? I'd prefer to execute this as
>> a function call from a C program.

>Look up:
> CreateToolhelp32Snapshot
> Process32First
> Process32Next

>--
>Claus André Färber <cl...@faerber.muc.de>, <http://www.muc.de/~cfaerber/>


Those functions will not work under Windows NT !


Wido Riezebos

unread,
Dec 15, 1996, 3:00:00 AM12/15/96
to

There is a tool called WinTop from Microsoft that shows all 32/16 bit
processes.
Look for it at www.microsoft.com

Grtz, Wido

Sigurd Stenersen

unread,
Dec 15, 1996, 3:00:00 AM12/15/96
to

Will one or more 16-bit processes degrade system performance under Windows
95 ?
That is, will 32-bit apps run slower whenever a 16-bit app or dll is
running ?

Sigurd


Wido Riezebos <riez...@twice.nl> wrote in article
<01bbea1e$cf65e2e0$c53e4fc1@client1>...

Anatoly Vorobey

unread,
Dec 17, 1996, 3:00:00 AM12/17/96
to

Sigurd Stenersen (sig...@online.no) wrote:
: Will one or more 16-bit processes degrade system performance under Windows

: 95 ?
: That is, will 32-bit apps run slower whenever a 16-bit app or dll is
: running ?

A 16-bit process may seriously degrade performance of
threads that use user interfacve DLLs, i.e. draw or write something
on screen, manage windows, send messages, etc.
Even if these threads are 32-bit, they will be in a hung state waiting
if a badly behaved 16-bit process doesn't yield control with GetMessage()
like functions.
A 16-bit processes that behaves really well in this, e.g. spends its
life gettings messages in a loop and processing them quickly or
yielding often if it processes them for a long time, will not
seriously affect system performance.

Ernesto L. Aparcedo

unread,
Dec 30, 1996, 3:00:00 AM12/30/96
to

In WIN NT you can use the Performance Monitor
app to list all running processes by selecting the
Process Object.

In Win32 API space, you can write the ps command
by using the Performance Data API's.

e-mail me if you want my "home-grown" version of ps.

Ernesto L. Aparcedo
nf...@ccmail.ceco.com

0 new messages