Microsoft is largely B2B - it sells software licenses to OEMs for the hardware, and licenses to large corporate customers for productivity software like Office and SQL Server and so forth. Most of Microsoft's sales aren't people buying Windows in stores.
Salesforce.com is another example of a B2B startup which grew explosively.