'Disable extended text selection keys programmatically C winapi

I am writing a text editor that works in the console. For highlighting text I'd like to use Shift+[Arrow key] but I am being blocked by the built-in text selection functionality of the console and it seems that it gets processed before the key event can be read with ReadConsoleInput. I found an old question that suggested I disable it manually from the console options, I tried that but it did not even work and if it did I can't settle for that as solution. I know the Windows version of VIM does not have this issue but I have no clue how it solves it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source