How to Get Handle Types of a Process in C++

半城伤御伤魂 提交于 2021-01-18 04:34:14

问题


i am writing a code which try to collect information about system-process performance. I have some counters like %Cpu, RAM, etc. but i am not able to get info about handles (like Process Explorer does).

To get handles count of a process we can use GetProcessHandleCount() but i need "something" that tells the global count of handles used in the computer and the type of those handles(File, Key, Event, Directory, etc)

Does anybody know if there is some function that get that information?

Thanks you!

来源:https://stackoverflow.com/questions/10798434/how-to-get-handle-types-of-a-process-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!