Windows library injection is not a big problem, it has so many references likes here, here or there.
The goal is x64 library implements both x64 and x86 injection.
Nowadays, Microsoft has kindly open source thier awesome research program Detours, makes our life easier. thanks god.