- Get the process ID.
- Get the handle to the process.
- Allocate the memory for the dll path.
- Write the dll path to the memory.
- Get address of "LoadLibraryA".
- Create remote thread to load the dll.
Please feel free to use these repositories if you want to know how to build a dll and use a dll in VC++.
Or refer to dll injection in VC++ version.