But the difference is they're not dependent on the Microsoft presence. If Microsoft ceased to exist tomorrow (localised meteor strike, let's say), the code running on .NET, Windows, etc. will still work. If Facebook is down, so are you.
If anything, the collapse of Microsoft would produce many smaller companies competing to satisfy the ubiquitous demand for Windows support.
Yes it's true that your products wont stop functioning in the short term, but a dead framework that's no longer supported and updated means you HAVE TO rewrite it using another framework. and we all know how costly rewrites are.
I find the 2 scenarios you listed to have much more in common than not. The main difference is the amount of time you have to react.