开发者

Windows API's which will show the running processes

开发者 https://www.devze.com 2023-02-02 23:23 出处:网络
I want to create a tool like 开发者_如何学Cmini task manager. I want to show all the running processes, cpu and memory usage. Can anybody tell me related api\'s which I can use for this. Any link to r

I want to create a tool like 开发者_如何学Cmini task manager. I want to show all the running processes, cpu and memory usage. Can anybody tell me related api's which I can use for this. Any link to related web page will be appreciated. (I want dump of all the statistics of running processes, cpu and memory.) Thanks in advance.


To do that, you will need to use the tool help functions to get snapshots of the system.

Here is a code example.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号