Computing.Net > Forums > Programming > Read the Process Table from C ?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Read the Process Table from C ?

Reply to Message Icon

Name: eraj
Date: December 29, 2003 at 21:58:59 Pacific
OS: Windows 2000
CPU/Ram: Pentium III / 320MB
Comment:

I'mtrying to write a program in C, jus to learn the C basics as well as to leran the concepts of an OS.
This program will take in the values of a process ( such as the Process ID or the Process Name ), which can be taken from the Task Manager of Windows 2000/XP, and then return the attributes of that process,such as the CPU time,Memory Usage, Child Process time and so on.
But I've gotta problem. Which function/s in C do I need to use, in order to read the process table and also to return the atrributes of the Process the user asked for ?
The books that I referred to say that the process table of Win 2000 or any other for that matter, is a set of structures with one entry for each process. All my program should do is to read this set of structures,isn't it ?



Sponsored Link
Ads by Google

Response Number 1
Name: anonproxy
Date: December 30, 2003 at 23:25:15 Pacific
Reply:

"All my program should do is to read this set of structures..."

Yes.

Look around here, specifically the reference for functions and structures.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Read the Process Table from C ?

How to read the 3rd line from the T www.computing.net/answers/programming/how-to-read-the-3rd-line-from-the-t/16604.html

read the transaction log in ms sql www.computing.net/answers/programming/read-the-transaction-log-in-ms-sql/6258.html

Read-in single char from stdin in C www.computing.net/answers/programming/readin-single-char-from-stdin-in-c/8569.html