I am looking for Delphi samples, but I can only find C ++ code codes.
For example, how to define the bottom hook in Delphi?
DETOUR_TRAMPOLINE(int WINAPI SetScrollInfoT(HWND, int, LPCSCROLLINFO, BOOL), SetScrollInfo)
If you only need to connect to your own process, you can look at the Detours library. I recently included it in my Cromis library with the consent of the author.
Here you can find here . Just download the whole library and use Cromis.Detours. It works on 32 and 64 bit and is well written.
Thanks everyone guys finally I got this Ring3HookLibrary