Hi madshi,
before i ask, i'm sure that i'm totally beginner in madchook and also english.
i'm testing api hook now with madchook 3.1.18
and i want to catch some apis such as "CreateFile, ReadFile and SHGetFileInfo" in (Desktop-search engine)explorer application that named "Everything"
i've successed to attach my test dll on this application. but it didn't hook apis at all and i couldn't find out any problem.
i attach some screen-shot, log and my source-code that modified from Print monitor Demo.
please check it and i would appriciate when you answer.
thanks! best regard
didn't hook apis in specified application
didn't hook apis in specified application
- Attachments
-
- source-code.zip
- (10.34 KiB) Downloaded 339 times
-
- Screen-shot and log.zip
- (209.22 KiB) Downloaded 327 times
Re: didn't hook apis in specified application
I'm confused, your source code doesn't even seem to use madCodeHook at all. Or am I missing something?
Re: didn't hook apis in specified application
I'm really sorry that i uploaded wrong file. Here is new uploads. thanks to reply
- Attachments
-
- HookWindowTest.zip
- (6.96 KiB) Downloaded 332 times
Re: didn't hook apis in specified application
You are calling FinalizeMadCHook() for DLL_THREAD_ATTACH and DLL_THREAD_DETACH events, which is totally wrong.
You said that you modified the PrintMonitor demo, which would have been smart. But you did not. Your dllmain.cpp file has exactly zero things in common with the PrintMonitor demo. If you actually did use the PrintMonitor demo as a starting point, you would not have run into this problem...
You said that you modified the PrintMonitor demo, which would have been smart. But you did not. Your dllmain.cpp file has exactly zero things in common with the PrintMonitor demo. If you actually did use the PrintMonitor demo as a starting point, you would not have run into this problem...
Re: didn't hook apis in specified application
Now it works super Thanks madshi!