[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6506":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":30,"discoverSource":31},6506,"minhook","TsudaKageyu\u002Fminhook","TsudaKageyu","The Minimalistic x86\u002Fx64 API Hooking Library for Windows","http:\u002F\u002Fwww.codeproject.com\u002FKB\u002Fwinsdk\u002FLibMinHook.aspx",null,"C",5795,1069,131,49,0,2,12,60,8,81.09,"Other",false,"master",true,[],"2026-06-12 04:00:29","# MinHook\n\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-BSD%202--Clause-orange.svg)](https:\u002F\u002Fopensource.org\u002Flicenses\u002FBSD-2-Clause)\n\nThe Minimalistic x86\u002Fx64 API Hooking Library for Windows\n\nhttps:\u002F\u002Fwww.codeproject.com\u002Farticles\u002FMinHook-The-Minimalistic-x-x-API-Hooking-Libra\n\n### Version history\n\n- **v1.3.4 - 28 Mar 2025**\n  * Improved error handling for enumerating and suspending threads.\n  * Visual Studio 2022 support.\n  * CMake support.\n  * Fixed compilation with Clang.\n  * Fixed compilation as C++ code.\n\n- **v1.3.3 - 8 Jan 2017**\n  * Added a helper function ```MH_CreateHookApiEx```. (Thanks to asm256)\n  * Support Visual Studio 2017 RC.\n\n- **v1.3.2.1 - 9 Nov 2015**  (Nuget package only)\n  * Fixed an insufficient support for Visual Studio 2015.\n\n- **v1.3.2 - 1 Nov 2015**\n  * Support Visual Studio 2015.\n  * Support MinGW.\n\n- **v1.3.2-beta3 - 21 Jul 2015**  (Nuget package only)\n  * Support MinGW. (Experimental)\n\n- **v1.3.2-beta2 - 18 May 2015**\n  * Fixed some subtle bugs. (Thanks to RaMMicHaeL)\n  * Added a helper function ```MH_StatusToString```. (Thanks to Jan Klass)\n\n- **v1.3.2-beta - 12 May 2015**\n  * Fixed a possible thread deadlock in x64 mode. (Thanks to Aleh Kazakevich)\n  * Reduced the footprint a little more.\n  * Support Visual Studio 2015 RC. (Experimental)\n\n- **v1.3.1.1 - 7 Apr 2015**  (Nuget package only)\n  * Support for WDK8.0 and 8.1.\n\n- **v1.3.1 - 19 Mar 2015**\n  * No major changes from v1.3.1-beta.\n\n- **v1.3.1-beta - 11 Mar 2015**\n  * Added a helper function ```MH_CreateHookApi```. (Thanks to uniskz).\n  * Fixed a false memory leak reported by some tools.\n  * Fixed a degradated compatibility issue.\n\n- **v1.3 - 13 Sep 2014**\n  * No major changes from v1.3-beta3.\n\n- **v1.3-beta3 - 31 Jul 2014**\n  * Fixed some small bugs.\n  * Improved the memory management.\n\n- **v1.3-beta2 - 21 Jul 2014**\n  * Changed the parameters to Windows-friendly types. (void* to LPVOID)\n  * Fixed some small bugs.\n  * Reorganized the source files.\n  * Reduced the footprint a little more.\n\n- **v1.3-beta - 17 Jul 2014**\n  * Rewrote in plain C to reduce the footprint and memory usage. (suggested by Andrey Unis)\n  * Simplified the overall code base to make it more readable and maintainable.\n  * Changed the license from 3-clause to 2-clause BSD License.\n\n- **v1.2 - 28 Sep 2013**\n  * Removed boost dependency ([jarredholman](https:\u002F\u002Fgithub.com\u002Fjarredholman\u002Fminhook)).\n  * Fixed a small bug in the GetRelativeBranchDestination function ([pillbug99](http:\u002F\u002Fwww.codeproject.com\u002FMessages\u002F4058892\u002FSmall-Bug-Found.aspx)).\n  * Added the ```MH_RemoveHook``` function, which removes a hook created with the ```MH_CreateHook``` function.\n  * 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.\n  * Made the functions ```MH_EnableHook``` and ```MH_DisableHook``` enable\u002Fdisable all created hooks when the ```MH_ALL_HOOKS``` parameter is passed. This, too, is an efficient way of handling multiple hooks.\n  * 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:\u002F\u002Fwww.codeproject.com\u002FMessages\u002F4578613\u002FRe-Bug-LoadLibraryExW-hook-fails-on-windows-2008-r.aspx)).\n\n- **v1.1 - 26 Nov 2009**\n  * 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:\u002F\u002Fwww.codeproject.com\u002FMessages\u002F3280374\u002FUnsafe.aspx))\n  * Shortened the function names from ```MinHook_*``` to ```MH_*``` to make them handier.\n\n- **v1.0 - 22 Nov 2009**\n  * Initial release.\n\n### Building MinHook - Using vcpkg\n\nYou can download and install MinHook using the [vcpkg](https:\u002F\u002Fgithub.com\u002FMicrosoft\u002Fvcpkg) dependency manager:\n\n    git clone https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvcpkg\n    .\\vcpkg\\bootstrap-vcpkg.bat\n    .\\vcpkg\\vcpkg integrate install\n    .\\vcpkg\\vcpkg install minhook\n\nThe 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:\u002F\u002Fgithub.com\u002FMicrosoft\u002Fvcpkg) on the vcpkg repository.\n","MinHook 是一个针对 Windows 平台的极简 x86\u002Fx64 API 钩子库。它以 C 语言编写，具有小巧的内存占用和高效的性能，支持多种编译器环境如 Visual Studio、CMake 和 MinGW 等。该库提供了一系列简洁易用的 API 接口，用于动态地拦截和替换目标函数，同时保持了良好的兼容性和稳定性。适用于需要对系统或应用程序行为进行修改而不改变其源代码的场景，比如软件调试、逆向工程以及安全研究等领域。","2026-06-11 03:07:20","top_language"]