https://github.com/delphilite/delphihookutils
Delphi Hooking Library by Lsuper
https://github.com/delphilite/delphihookutils
delphi delphinuspackage detours fmx freepascal hook hooking hooks lazarus patch trampoline
Last synced: 4 months ago
JSON representation
Delphi Hooking Library by Lsuper
- Host: GitHub
- URL: https://github.com/delphilite/delphihookutils
- Owner: delphilite
- License: mpl-2.0
- Created: 2016-10-04T12:11:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-03T09:39:08.000Z (11 months ago)
- Last Synced: 2025-03-03T10:34:12.122Z (11 months ago)
- Topics: delphi, delphinuspackage, detours, fmx, freepascal, hook, hooking, hooks, lazarus, patch, trampoline
- Language: Pascal
- Homepage:
- Size: 440 KB
- Stars: 134
- Watchers: 23
- Forks: 59
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DelphiHookUtils




[English](./README.md) | [Chinese](./README.zh-CN.md)
DelphiHookUtils is a utility library for code hooking, inspired by wr960204's [delphi-hook-library](https://code.google.com/p/delphi-hook-library). This library replaces BeaEngine with [LDE64](https://github.com/BeaEngine/lde64) to reduce size, along with additional modifications and improvements.
## Features
* Support **x86** and **x64** architecture.
* Support hooking interfaces methods by **MethodIndex**.
* Support hooking Object Method.
* Support Delphi 7-12 x86/x64 for Win.
* Support Lazarus/FPC x86/x64 for Win.
## Installation: Manual
To install the DelphiHookUtils binding, follow these steps:
1. Clone the repository:
```sh
git clone https://github.com/delphilite/DelphiHookUtils.git
```
2. Add the DelphiHookUtils\Source directory to the project or IDE's search path.
## Installation: Delphinus-Support
DelphiHookUtils should now be listed in [Delphinus package manager](https://github.com/Memnarch/Delphinus/wiki/Installing-Delphinus).
Be sure to restart Delphi after installing via Delphinus otherwise the units may not be found in your test projects.
## Usage
For more examples, refer to the ones under the Demos folder in the library.
## Documentation
For more information, refer to the wiki documentation below.
1. [Windows API Hooking Techniques](https://en.wikipedia.org/wiki/Hooking) - General overview of hooking methods in software.
2. [Microsoft Detours](https://github.com/microsoft/Detours/wiki) - Microsoft's library for intercepting Win32 functions.
3. [MahdiSafsafi DDetours](https://github.com/MahdiSafsafi/DDetours/wiki) - MahdiSafsafi's library for intercepting Win32 functions.
## Contributing
Contributions are welcome! Please fork this repository and submit pull requests with your improvements.
## License
This project is licensed under the Mozilla Public License 2.0. See the [LICENSE](LICENSE) file for details.