Program for "injecting" a dll to a target process.
you need:
Build the project in release configuration
The injector works by making the target process call LoadLibraryA with the path to our specified DLL.
It is achieved by first allocating memory space in the target process via VirtualAllocEx for the DLL path and then writing that dll path there via WriteProcessMemory. Second step is to call CreateRemoteThread with the address of LoadLibraryA passed as the start address of the created thread, we can do it that way because LoadLibraryA is a function of a staticly linked library that is loaded in all windows processes.
The target process name and dll path are hardcoded.