问题
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