I ask this question in the context of investing in "ethical" companies, as someone I know wants to do in order to support them. My understanding is that when you buy stock, you're just exchanging ownership of the company, and not actually helping the company by giving them money (unless it's an IPO or new stock has been issued).
In what ways directly (if any) or indirectly, do you help a company by buying into them?