# MinHook
[![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause)
The Minimalistic x86/x64 API Hooking Library for Windows
http://www.codeproject.com/KB/winsdk/LibMinHook.aspx
### Version history
- **v1.3.3 - 8 Jan 2017**
* Added a helper function ```MH_CreateHookApiEx```. (Thanks to asm256)
* Support Visual Studio 2017 RC.
- **v1.3.2.1 - 9 Nov 2015** (Nuget package only)
* Fixed an insufficient support for Visual Studio 2015.
- **v1.3.2 - 1 Nov 2015**
* Support Visual Studio 2015.
* Support MinGW.
- **v1.3.2-beta3 - 21 Jul 2015** (Nuget package only)
* Support MinGW. (Experimental)
- **v1.3.2-beta2 - 18 May 2015**
* Fixed some subtle bugs. (Thanks to RaMMicHaeL)
* Added a helper function ```MH_StatusToString```. (Thanks to Jan Klass)
- **v1.3.2-beta - 12 May 2015**
* Fixed a possible thread deadlock in x64 mode. (Thanks to Aleh Kazakevich)
* Reduced the footprint a little more.
* Support Visual Studio 2015 RC. (Experimental)
- **v1.3.1.1 - 7 Apr 2015** (Nuget package only)
* Support for WDK8.0 and 8.1.
- **v1.3.1 - 19 Mar 2015**
* No major changes from v1.3.1-beta.
- **v1.3.1-beta - 11 Mar 2015**
* Added a helper function ```MH_CreateHookApi```. (Thanks to uniskz).
* Fixed a false memory leak reported by some tools.
* Fixed a degradated compatibility issue.
- **v1.3 - 13 Sep 2014**
* No major changes from v1.3-beta3.
- **v1.3-beta3 - 31 Jul 2014**
* Fixed some small bugs.
* Improved the memory management.
- **v1.3-beta2 - 21 Jul 2014**
* Changed the parameters to Windows-friendly types. (void* to LPVOID)
* Fixed some small bugs.
* Reorganized the source files.
* Reduced the footprint a little more.
- **v1.3-beta - 17 Jul 2014**
* Rewrote in plain C to reduce the footprint and memory usage. (suggested by Andrey Unis)
* Simplified the overall code base to make it more readable and maintainable.
* Changed the license from 3-clause to 2-clause BSD License.
- **v1.2 - 28 Sep 2013**
* Removed boost dependency ([jarredholman](https://github.com/jarredholman/minhook)).
* Fixed a small bug in the GetRelativeBranchDestination function ([pillbug99](http://www.codeproject.com/Messages/4058892/Small-Bug-Found.aspx)).
* Added the ```MH_RemoveHook``` function, which removes a hook created with the ```MH_CreateHook``` function.
* Added the following functions to enable or disable multiple hooks in one go: ```MH_QueueEnableHook```, ```MH_QueueDisableHook```, ```MH_ApplyQueued```. This is the preferred way of handling multiple hooks as every call to `MH_EnableHook` or `MH_DisableHook` suspends and resumes all threads.
* Made the functions ```MH_EnableHook``` and ```MH_DisableHook``` enable/disable all created hooks when the ```MH_ALL_HOOKS``` parameter is passed. This, too, is an efficient way of handling multiple hooks.
* If the target function is too small to be patched with a jump, MinHook tries to place the jump above the function. If that fails as well, the ```MH_CreateHook``` function returns ```MH_ERROR_UNSUPPORTED_FUNCTION```. This fixes an issue of hooking the LoadLibraryExW function on Windows 7 x64 ([reported by Obble](http://www.codeproject.com/Messages/4578613/Re-Bug-LoadLibraryExW-hook-fails-on-windows-2008-r.aspx)).
- **v1.1 - 26 Nov 2009**
* Changed the interface to create a hook and a trampoline function in one go to prevent the detour function from being called before the trampoline function is created. ([reported by xliqz](http://www.codeproject.com/Messages/3280374/Unsafe.aspx))
* Shortened the function names from ```MinHook_*``` to ```MH_*``` to make them handier.
- **v1.0 - 22 Nov 2009**
* Initial release.
### Building MinHook - Using vcpkg
You can download and install MinHook using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:
git clone https://github.com/microsoft/vcpkg
.\vcpkg\bootstrap-vcpkg.bat
.\vcpkg\vcpkg integrate install
.\vcpkg\vcpkg install minhook
The MinHook port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
没有合适的资源?快使用搜索试试~ 我知道了~
Vulkan 和 DirectX 12 挂钩可让您为 Red Dead Redemption 2 创建 ImGui 菜单.zip
共103个文件
h:30个
cpp:16个
vcxproj:13个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 2 浏览量
2024-11-27
14:47:18
上传
评论
收藏 1.11MB ZIP 举报
温馨提示
Vulkan 和 DirectX 12 挂钩可让您为 Red Dead Redemption 2 创建 ImGui 菜单ImGuiRDR2HookVulkan 和 DirectX 12 钩子允许您为 RDR2 创建 ImGui 菜单先决条件MinHook x64 (已包含)Kiero (已包含)ImGui (已包含)Vulkan SDK如何使用在尝试编译主项目之前,您必须先编译 MinHook (libMinHook),以便主项目可以引用一些必需的文件。实际上没有太多需要设置的,但您必须首先确保已安装 Vulkan SDK,可在此处找到https ://vulkan.lunarg.com/sdk/home 。安装 Vulkan SDK 后,您可能需要重新启动 Visual Studio。注意使用 WaitAndRender() 而不是 WAIT() 来防止崩溃!此函数在让步时渲染 ImGui。另请参阅#2hooks除非您知道自己在做什么,否则请不要触碰文件夹中的任何内容!script.cpp 仍然包含脚本的主循环。menu.cpp/.h 是绘制 I
资源推荐
资源详情
资源评论
收起资源包目录
Vulkan 和 DirectX 12 挂钩可让您为 Red Dead Redemption 2 创建 ImGui 菜单.zip (103个子文件)
make.bat 319B
hook.c 26KB
trampoline.c 10KB
buffer.c 10KB
hde64.c 9KB
hde32.c 9KB
imgui.cpp 722KB
imgui_widgets.cpp 416KB
imgui_demo.cpp 401KB
imgui_tables.cpp 215KB
imgui_draw.cpp 208KB
imgui_impl_vulkan.cpp 74KB
imgui_impl_win32.cpp 42KB
imgui_impl_dx12.cpp 34KB
kiero.cpp 27KB
vulkan.cpp 20KB
dx12.cpp 9KB
main.cpp 5KB
keyboard.cpp 1KB
script.cpp 1KB
menu.cpp 973B
win32.cpp 667B
MinHook.def 252B
.editorconfig 410B
ImGuiRDR2Hook.vcxproj.filters 4KB
libMinHook.vcxproj.filters 2KB
libMinHook.vcxproj.filters 2KB
libMinHook.vcxproj.filters 2KB
libMinHook.vcxproj.filters 2KB
libMinHook.vcxproj.filters 2KB
libMinHook.vcxproj.filters 2KB
ImGuiRDR2Hook.filters 917B
.gitattributes 66B
.gitignore 360B
.gitignore 317B
natives.h 1.32MB
imgui.h 303KB
imgui_internal.h 233KB
imstb_truetype.h 195KB
imstb_textedit.h 54KB
imstb_rectpack.h 20KB
imconfig.h 10KB
imgui_impl_vulkan.h 9KB
MinHook.h 7KB
kiero.h 6KB
trampoline.h 4KB
table64.h 3KB
table32.h 3KB
imgui_impl_win32.h 3KB
include.h 3KB
hde64.h 3KB
hde32.h 2KB
imgui_impl_dx12.h 2KB
main.h 2KB
buffer.h 2KB
pstdint.h 2KB
types.h 1KB
nativeCaller.h 809B
dx12.h 620B
vulkan.h 506B
keyboard.h 413B
script.h 387B
menu.h 360B
win32.h 145B
enums.h 0B
minhook-config.cmake.in 2KB
ScriptHookRDR2.lib 7KB
LICENSE 1KB
Makefile 929B
README.md 4KB
README.md 2KB
MinHook.rc 847B
MinHookVC16.sln 2KB
MinHookVC12.sln 2KB
MinHookVC15.sln 2KB
MinHookVC14.sln 2KB
MinHookVC11.sln 2KB
MinHookVC10.sln 2KB
MinHookVC9.sln 2KB
ImGuiRDR2Hook.sln 1KB
LICENSE.txt 4KB
CMakeLists.txt 4KB
资源内容.txt 901B
AUTHORS.txt 214B
ImGuiRDR2Hook_config.txt 170B
标签.txt 6B
ImGuiRDR2Hook.vcxproj.user 221B
ImGuiRDR2Hook.user 165B
libMinHook.vcproj 8KB
MinHook.vcproj 7KB
MinHook.vcxproj 10KB
MinHook.vcxproj 10KB
MinHook.vcxproj 10KB
MinHook.vcxproj 10KB
MinHook.vcxproj 10KB
MinHook.vcxproj 10KB
libMinHook.vcxproj 10KB
libMinHook.vcxproj 10KB
libMinHook.vcxproj 10KB
libMinHook.vcxproj 10KB
共 103 条
- 1
- 2
资源评论
赵闪闪168
- 粉丝: 1564
- 资源: 3662
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- fastchat Vicuna微调英文数据集
- 操作系统课程设计.pptx
- cudnn-local-repo-ubuntu2004-8.9.7.29-1.0-1-amd64
- MyBatisPlus实战:无感更新时间字段
- Performance Test Report压力测试报告
- 移动端图片上传前端代码
- 一个使用 DirectX 进行游戏截屏的小程序.zip
- 中文科学文献微调数据集
- C语言程序设计算法题.pptx
- 一个使用 DirectX Video Acceleration 2 从头解码 h264 视频格式的程序,使用 Avcc 格式的 mp4 文件 电影原子、Nal Unit、DXVA2、Media.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功