简体   繁体   English

德尔福如何与Detours图书馆互动?

[英]How Delphi Interop with Detours Library?

I'm looking for Delphi samples, but I can find only the C++ sample codes. 我正在寻找Delphi样本,但我只能找到C ++示例代码。

For example, how to define the below hook in Delphi? 例如,如何在Delphi中定义下面的钩子?

DETOUR_TRAMPOLINE(int   WINAPI SetScrollInfoT(HWND, int, LPCSCROLLINFO, BOOL), SetScrollInfo)

If you only need to hook inside your own process the you can look at Detours library. 如果您只需要在自己的进程中挂钩,就可以查看Detours库。 I recently included it in my Cromis library with the consent of the author. 我最近在获得作者同意的情况下将其包含在我的Cromis库中。

You can find it here . 你可以在这里找到它。 Just download the whole lib and use Cromis.Detours. 只需下载整个lib并使用Cromis.Detours。 It works on 32 and 64 bit and is very well written. 它适用于32位和64位,编写得非常好。

谢谢大家,最后我得到了这个Ring3HookLibrary

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM