在Windows Mobile上锁定/禁用相机按钮 [英] Lock/Disable Camera button on windows mobile

查看:114
本文介绍了在Windows Mobile上锁定/禁用相机按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求是通过我的.Net应用程序完全锁定Windows移动设备。在这种情况下,所有按钮都应该锁定,不应该工作。首先,我使用了GAPI的GXOpenInput()。然后我发现它被删除了,所以我使用DirectDraw的AllKeys(true)来锁定按钮。然后我发现键盘和家庭,后面,通话按钮上的所有按键都被锁定,但右手顶部的摄像头按钮仍在工作,并在用户按下时打开相机。此外,QWERTY键盘上的功能键正常工作。所以我希望解决方案锁定这些按钮。
My requirement is to lock down the windows mobile device completely by my .Net application. In that case all buttons should be locked and should not work. Firstly, I used GXOpenInput() from GAPI. Then I found that it is depricated, so I used AllKeys(true) from DirectDraw to lock down buttons. Then I found that all keys on keypad and home, back, call buttons are locked, but the camera button on right hand top is still working and opens the camera when user press it. Also, the function keys on QWERTY keyboard are working. So I want the solution to lock these buttons.

推荐答案



>>我的要求是通过我的.Net应用程序完全锁定Windows移动设备。在这种情况下,所有按钮都应该锁定,不应该工作。

您可以使用EnableHardwareKeyboard功能禁用/启用键盘。在不禁用触摸屏。
http://msdn.microsoft.com/en-us/library/aa925832.aspx

问候,
春生堂

Hi,

>>My requirement is to lock down the windows mobile device completely by my .Net application. In that case all buttons should be locked and should not work.

You can use the EnableHardwareKeyboard function to disable/enable the keyboard. In does not disable the touch screen. 
http://msdn.microsoft.com/en-us/library/aa925832.aspx

Regards,
Chunsheng Tang


这篇关于在Windows Mobile上锁定/禁用相机按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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