Ctrl+Alt+Del and DirectInput

人走茶凉 提交于 2019-12-08 03:56:37

问题


I am using DirectInput in C++ to acquire the mouse and keyboard for my program. This works fine and I re-acquire if I get the InputLost error.

However, when I press Ctrl+Alt+Del my program gets E_ACCESSDENIED when attempting to acquire, even when the program window is re-selected. This occurs even if I don't actually select an option within the Ctrl+Alt+Del window (just press cancel).

I am curious as to how a program is meant to recover input after this has happened. I am currently running Windows 7.

来源:https://stackoverflow.com/questions/11788086/ctrlaltdel-and-directinput

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!