I successfully injected the managed DLL into the .net 3.5 application using the loader DLL (in C ++) and then my "payload" in the dll (C #).
When I try to do this in a .net 4.0 application, always crash.
Boot C ++:
#include "MSCorEE.h" void StartTheDotNetRuntime() {
C # payload:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms; namespace MyNamespace { public class MyClass {
I tried to use the following fix, but to no avail, any ideas? fix ??:
hr = pMetaHost->GetRuntime(L"v4.0.30319", IID_ICLRRuntimeInfo, (LPVOID*)&lpRuntimeInfo);
source share