Microsoft can try all they want, people don't run Windows for enjoyment. They run it because either their business has software that is reliant on it or on the consumer side it's what they are familiar with from using it for 20 years or they game.
Everything else has moved to mobile, so you need to program for iOS or Android not Windows. The rest who want a bigger screen but not the complications and hell of maintaining a Windows computer will just use a tablet, which again means you program for iOS or Android.
If we go back to 2009 and look at what percentage of devices hitting websites were running its
and the rest are all well under 1%.
Go forward just 1 decade to now and its
Basically in just 10 years Windows usage has dropped by 2/3rds, even MacOS usage is 1/4 that of Windows usage now, which is not bad considering bar a few hackintoshes you only get that OS on the most expensive laptops and desktops out there, and they had a bad 4 year run with dodgy keyboards.
Microsoft have not helped this situation at all, last decade they released the worst operating systems ever made, Windows 8, Windows 8.1 and Windows 10. They are so bad they made me do something i thought i would never ever do, buy a Macbook i got so sick of the daily Windows experience and Windows 7 is now dead. Microsoft might tempt me back if they put the beautiful Windows 2000 GUI on the Windows 10 kernel so my eyes don't bleed, but we know that is not going to happen so i will just stick with MacOS. it's crisp, clean, consistent and at least designed to be driven by a mouse and keyboard and not that nasty duel personality GUI of Windows 10, if i want touch i will use my iPad not a laptop!