Ctrl+Alt+Del and DirectInput

2019-06-06 00:06发布

问题:

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.