You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey , I am a beginner and I found this interesting project about Windows API hooking , exatly in this path 2021-11-30-basic-hooking-1
-At the first, everything was functioning properly, and I was receiving the three message boxes.
However, The main problem comes within the file hooking.cpp 2021-11-30-basic-hooking-1\hooking.cpp. Although the first/originql message box appears but after that the program ends without showing the second/hooked box.
So I tried some things like but it doesn't work :
I did put rOffset as a regular integer : DWORD rOffset; rOffset = dst-src;
I replaced memcpy() with CopyMemory().
I changed the patch type to BYTE : BYTE patch[5] = {0};
I attempted to change the type of both patch to void * and rOffset to const void*. However, I encountered errors due to the fact that the patch will receive bytes.
I don't know if the problem is with the number of bytes that need to be adjusted from 5 to a higher value.
The text was updated successfully, but these errors were encountered:
Riadrai09
changed the title
Problem with hooking2.cpp file not working
Problem with hooking.cpp file not working
Jun 30, 2024
Hey , I am a beginner and I found this interesting project about Windows API hooking , exatly in this path
2021-11-30-basic-hooking-1
-At the first, everything was functioning properly, and I was receiving the three message boxes.
2021-11-30-basic-hooking-1\hooking.cpp
. Although the first/originql message box appears but after that the program ends without showing the second/hooked box.So I tried some things like but it doesn't work :
The text was updated successfully, but these errors were encountered: