如何在程序中挂接UVC快照密钥消息 [英] How can I Hook a UVC Snapshot Key Message In My Program

查看:94
本文介绍了如何在程序中挂接UVC快照密钥消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想挂接网络摄像头由驾驶员发送给系统的快照关键消息,因此,当消息到达时,我可以做些什么,谢谢.

I want to Hook the Snapshot Key Message that the Webcam sent to the system by the driver, so I can do something when the Message is arrival, thanks.

推荐答案

SetWindowsHookEx可能是解决方案.您将陷入该进程(或所有进程)的消息循环中,然后可以检测到该按钮被按下,假设可以识别出一条消息,指示该操作.

msdn信息和示例链接:

http://msdn.microsoft.com/en-us/library/ms644990.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library /ms644960(v=VS.85).aspx#installing_releasing [
SetWindowsHookEx might be the solution to this. You would hook into the message loop of the process (or all processes) and could then detect the button is pressed, asuming a message can be identified that would indicate such an action.

The msdn info and example link:

http://msdn.microsoft.com/en-us/library/ms644990.aspx[^]

http://msdn.microsoft.com/en-us/library/ms644960(v=VS.85).aspx#installing_releasing[^]

Good luck!


这篇关于如何在程序中挂接UVC快照密钥消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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