All I'm trying to do is get my DLL injected into some other programs (at process creation time) and get it to execute the DllMain function. Unfortunately, no matter what code I am trying, it never works.
For example, I have this code: http://pastebin.com/P4NzLb3X Basically it is just using SetWindowsHookEx to install a keyboard hook. Checking with Process Hacker however shows me that the DLL never actually gets injected into any process. :(
I searched already for the entire day for a solution. How can I solve this?