SetConsoleMode fails with zero, lasterror = 0
This is not a duplicate! - Well, after reading the comments, maybe it is. I was looking for a way to italicize text in the console output of a console application, in c#, Visual Studio 2015, Targeting .NET Framework 4.5.2, OS = Windows 7. The Microsoft Documentation is pretty clear It's here - and it's so misleading it's wrong. This is an OS problem. I found the following question with a solution that does what I want by Vladimir Reshetnikov, adding text decorations to console output answered Mar 28 at 19:52 in one of the answers, and code like it in git, and elsewhere... my problem is -