API hooking in Dlang?

Dirk via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Nov 2 22:51:09 PST 2014


On Monday, 3 November 2014 at 04:31:40 UTC, Dirk wrote:
> On Monday, 3 November 2014 at 03:41:19 UTC, Dirk wrote:
>> I am wondering if there is any libraries I have missed for API 
>> hooking? Preferably on windows, and linux, although just 
>> windows is fine. I found one named 
>> kong(http://www.dsource.org/projects/kong), although it has 
>> been abandoned and only supports xp on windows. Or if there is 
>> any detours bindings anywhere that would be great.
>>
>> Im a little surprised there isn`t much on Dll Injection/API 
>> hooking on Dlang. I figure people must be doing it as it is 
>> very common. Could anyone point me in the right direction?
>
> I should of mentioned that I have also seen the MadCodeHook 
> Library bindings, which is great but the MCH library is very 
> expensive.

I ended up finding an example on 
github(https://github.com/Trass3r/hooksample), not sure how I 
missed it. With that said it is alot easier than I thought. I am 
beginning to love D :).


More information about the Digitalmars-d-learn mailing list