Is there a Bitcoin mining library? I write free software in my spare time. Some of my softwares are quite popular. Now i'm a thinking of a way to generate a little revenue. Using adware is not an option for me.

Is there a Bitcoin mining library ( maybe a .dll ) that i can bundle into my programs?
Trying to mine bitcoin on home PCs will generate you absolutely no income, to mine bitcoin you need a lot of hashpower which home PCs just don't have. So that isn't a viable way to generate revenue. But also, secretly mining bitcoin on peoples computers while they run your software is probably quite dishonest, if you tried such a thing you would need to ensure you let them know it was going to happen. And antivirus software would probably quarantine your file as a bitcoin mining trojan.