如何获取与进程相关联的GDI对象 [英] How to get GDI objects associated to a process

查看:233
本文介绍了如何获取与进程相关联的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对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆