How can I detect one or a combination of key strokes in C?

How can I detect one or a combination of key strokes in ANSI C and / or with the Win32 SDK?

For example: how can I detect CTRL + ALT + DEL?

Please provide me with some source code or any web link.

Please note that I am using the polling mechanism, not the event.

I need to do this in win32 console mode.

+5
source share
1 answer

With ANSI C, this is not possible because ANSI C does not define any keyboard access method in this way. A lower level function in it that receives input from the user, getcwhich returns a character after it has been entered in stdinand the ENTER key is pressed.

Win32 API, , . (WndProc) WM_CHAR. , CTRL SHIFT.


P.S. , , , , - , Autohotkey?

+1

All Articles