如何获取与进程相关联的GDI对象

编程入门 行业动态 更新时间:2024-10-24 16:26:27
本文介绍了如何获取与进程相关联的GDI对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在调查我们的智能客户端应用程序中的GDI泄漏问题。 我正在寻找一个工具(如 tasklist )来获取与进程相关联的GDI对象。我可以看到GDI对象在taskmanager,但我的要求捕获它定期在某个地方。例如在一个文本文件中。

I am investigating GDI leaks issue in one of our smart-client application. I am looking for a tool (like tasklist) to get the GDI objects associated to a process. I can see the GDI objects in taskmanager, But my requirement to capture it periodically somewhere. For example in a text file.

推荐答案

编写一个程序来定期记录GDI句柄数使用 GetGuiResources API函数。

It should be quite straightforward to write a program to periodically log the number of GDI handles in use by a process, using the GetGuiResources API function.

更多推荐

如何获取与进程相关联的GDI对象

本文发布于:2023-10-19 14:46:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1507833.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:相关联   进程   对象   GDI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!