API hooking in Dlang?

Dirk via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 3 06:23:11 PST 2014


On Monday, 3 November 2014 at 07:46:57 UTC, Jack wrote:
> On Monday, 3 November 2014 at 06:51:11 UTC, Dirk wrote:
>> 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 :).
>
> You should find some at code.dlang.org

That was actually the first place I checked. The only example was 
dmadhook which is a wrapper of the MadCodeHook paid library. 
Thanks for helping though.


More information about the Digitalmars-d-learn mailing list