mhook
mhook copied to clipboard
A Windows API hooking library
Is there a plan to support Windows on Arm64? Arm64 is a growing ecosystem for Windows and having this library as part of the ecosystem, would be great.
I get this error message for each instance of attempting to hook an API. This appears to be the same issue as #11. ``` [0x7FFE0A04B210] ANOMALY: use of REX.w is...
When FindTrampolineInRange() can't locate a suitable trampoline in the existing free list, TrampolineAlloc() calls BlockAlloc() to create a new pool of trampolines. BlockAlloc() links the last node of the new...
When build mhook in debug mode, in function SuspendOneThread: `ODPRINTF((L"mhooks: SuspendOneThread: Successfully suspended thread %d - IP is at %p", dwThreadId, pIp)); break;` and in ODPRINTF will call _vscwprintf, in...
Use const char* data type for constant strings.
Error message: ANOMALY: use of REX.w is meaningless (default operand size is 64). My Test Code: typedef BOOL (WINAPI\* PFNOPENPRINTERW)( LPWSTR pPrinterName, LPHANDLE phPrinter, LPPRINTER_DEFAULTSW pDefault ); PFNOPENPRINTERW fpOpenPrinterW=(PFNOPENPRINTERW)GetProcAddress(LoadLibraryW(L"winspool.drv"), "OpenPrinterW");...
I'm having a problem: HookedFunction(hdc){ DebugWrite("HookedFunction"+HtoString(hdc)); return OriginalFunction(hdc); } Is writting: HookedFunction FFFFFFFF9C214357 HookedFunction FFFFFFFF9C214357 I've noticed the problem when I got errors from the fact the Function was deleting...
Hello I have built the project(the project you upload) in Visual Studio2017 in debug mode(Win32), and the HookHeapAlloc failed with exception “Access confliction” in line 106. I want to use...
I'm a member of the Pinguem.ru competition on finding errors in open source projects. A bug, found using PVS-Studio. Warnings: [V728](https://www.viva64.com/en/w/v728/) An excessive check can be simplified. The '(A &&...