It is my unmanaged export (Test.dll) code:
Code:
using System;
using System.Threading;
using System.Windows.Forms;
using RGiesecke.DllExport;
namespace Test
{
internal static class UnmanagedExports
{
[DllExport("dll_main", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
static void dll_main()
{
new Thread(() => Application.Run(new MainForm())).Start();
}
}
}
Code:
try
{
using (Injector syringe = new Injector(Process.GetProcessesByName("notepad")[0]))
{
syringe.InjectLibrary("Test.dll");
syringe.CallExport("Test.dll", "dll_main");
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
It is : "The specified procedure could not be found"
Project Version: .Net Framework 2.0
DLL Version : .Net Framework 2.0







