Not familiar with the term embedding. There are several ways to run your code in another process, one is DLL injection another one you can see in the attached souce in this post