In the 1990s Microsoft “invested” in Apple because Steve Jobs allowed them to save face by giving them the option to settle their part of Apple v San Francisco Canyon Co by calling part of it—$150 M—a stock purchase that only lasted a few years. I do not know how much the total cash settlement from Microsoft was, but industry rumors went up to $1B.