System Information Using C/C++

What would be the header files and the suitable codes required for generating system calls in C++ for the below mentioned purposes:-
a. Number of Processes running in the system
b. Number of Zombie Processes in the system
c. Details of each of the processes:
d. Process Name,
e. Process Class (Time sharing class, real-time class, etc.),
f. Process State (sleeping, running, waiting for IO, etc),
g. Process Priority,
h. % of CPU Used
i. CPU Time used by the process in User, Kernel
j. Number of file descriptors opened by the process
k. Listing of Opened files, sockets, pipes, devices
l. Virtual address map of the libraries, files
m. Signals pending, blocked on the process
n. Stack trace of the process or threads

PLS DO reply . ANy reference to any site would be immensely helpful where i can view such sample codes . This is exclusively for windows enviornment system.

10 Years
Discussion Span
Last Post by Ancient Dragon
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.