I've only found SetConsoleCtrlHandler
,but it could only trap Ctrl-C and other stuff,I've searched Google and found no documentation about Ctrl-V.
Asked
Active
Viewed 165 times
3

Mitsuha
- 103
- 5
-
Definitely possible. I know it at the hwnd level (replacing it's wndproc let's you intercept anything) and you can get the console hwnd so... – Abel Aug 10 '22 at 12:08
-
Disable "Ctrl key shortcuts" in the menu? MS probably forgot to publish (or write) an API do do that... – n. m. could be an AI Aug 10 '22 at 12:33
-
https://stackoverflow.com/questions/18291284/handle-ctrlc-on-win32 Maybe This? You might be able to change it to work for `CTRL_V_EVENT`.. – the_electro_bros Aug 10 '22 at 13:49
-
@the_electro_bros nagtive, there is no macro for CTRL_V_EVENT – Mitsuha Aug 12 '22 at 01:18
-
Oh. Surprising, I would have expected them to have added that... – the_electro_bros Aug 12 '22 at 13:03