its strange to Microsoft still in the race after loosing web, search, mobile and much of the developer mindshare
If your measure of "losing" is "not #1" then everyone is a loser in at least one of your categories, especially Apple.
And remember that Oracle is an enormous company just by focusing on enterprise, but MS is way larger just in enterprise. Sharepoint, SQL Server, etc etc.
And even though they are a very distant second in search, that product alone produces more revenue than most companies can ever dream of. It is actually a huge financial success.