Replacement/Equivalent for the CorBindToRuntimeEx-Function?

c++

Solution

Use CLRCreateInstance instead. Loading the Common Language Runtime into a Process explains how to do this in CLR v4.0+.

Problem

I want to use it to inject C# dll into a process (http://www.codingthewheel.com/archives/how-to-inject-a-managed-assembly-dll/) but the CorBindToRuntimeEx-Function is deprecated... Is there an equal function for CorBindToRuntimeEx which is not deprecated?

Original source