[Win32] Remotely execute functions of a D program

Jacob Carlborg doob at me.com
Sat Sep 15 05:03:57 PDT 2012


On 2012-09-14 20:53, alex wrote:

> The primary injection routine and how it works is not the problem - I
> can successfully insert a MSVC++ Dll without any problems into a D
> program. (I've used this https://github.com/jeffora/extemory library btw
> - it's for c# :-))
> Anyway, on a DLL built with dmc or dmd 1/2, the main program immediately
> crashes or unloads the dll when returning false in the DllMain()
>
> So how to insert a D DLL into a D program?

I don't know the status on Windows but in general D dynamic libraries 
don't properly work. The problems are TLS, exception handing tables and 
module infos. There might be other problems as well.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list