Windows API that will show running processes

I want to create a tool like a mini task manager. I want to show all running processes, processor and memory usage. Can someone tell me a related api that I can use for this. Any link to the corresponding web page will be appreciated. (I want to reset all statistics of running processes, processor and memory.) Thanks in advance.

+4
source share
2 answers

To do this, you need to use the auxiliary functions of the tool to take snapshots in the system.

Here is a sample code.

+3
source

You can use EnumProcess and openProcess . Here is a complete code example for this: http://msdn.microsoft.com/en-us/library/ms682623%28v=vs.85%29.aspx

+1
source

Source: https://habr.com/ru/post/1334193/


All Articles