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 ?
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 ?
Summary: Hi Friend, In batch code, is it possible to read a particular line from the text file. For eg., Text file "test1.txt" contains the following text.... data1 data2 data3 data4 data5 I need to read th...
Summary: to simulate transaction replication, i want to read the transaction log from ms sql2000's transaction log file and execute it in another sql server. thank you for any help! ...
Summary: filename is a character array yes? You don't use the address operator with the scanf statement. A better choice in place of scanf is fgets IMO. filename most likely would pick up the newline left in...