关于窗户挂钩. [英] Regarding windows Hooks.

查看:78
本文介绍了关于窗户挂钩.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,

我阅读了有关钩子和相关文档的信息.我正在开发一个屏幕捕获应用程序,我使用了GDI和Direct3D方法,现在我正在使用轮询方法来捕获屏幕.但这会影响系统性能.我正在寻找一种解决方案,以了解一种方法来学习活动的桌面更新并仅在该瞬间进行捕获.我正在考虑使用挂钩来跟踪鼠标或键盘事件并根据事件捕获屏幕.请澄清我以下的疑问,

1.是否为此目的使用钩子是正确的选择.

2.还有其他方法可以获取屏幕或视频内存更新的通知.

3.我读到有关镜像驱动程序的信息,但是我对驱动程序一无所知.我认为编写驱动程序很复杂,而且花时间.如果有任何可用的样品,请提供这些链接.

等待您的答复.....预先感谢...

Dear sir,

I read about hooks and related documentation. I am developing a screen capture application, I used GDI and Direct3D methods, now I am using polling method to capture screen. But this is affecting system performance. I am searching for a solution to know a way to learn active desktop updates and to capture only at that instant. I am thinking to use hooks to track mouse or keyboard events and to capture screen according to events. Please clarify my below doubts,

1. Whether using hooks for this purpose is a right choice.

2. Is there any other ways to get notifications of screen or video memory updates.

3. I read about mirror drivers, but I don't know anything about drivers. I think writing a driver is complicated and time taking process. If any samples already available, please provide those links.

Awaiting for your reply..... Thanks in advance...

推荐答案

,您还可以看到本教程http://simplesamples.info/MFC/IdleProcessing.php [ ^ ]
you can also see this tutorial http://simplesamples.info/MFC/IdleProcessing.php[^]


这篇关于关于窗户挂钩.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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