At its peak Windows was running on 90% of computers and the biggest rival Apple (Steve Jobs) was taking money from Microsoft (Bill G) to survive.
Bill was able to leverage almost all other software companies to create software for Windows to create a lock in fro the customers.