When I do hook on the StartPage APi Function (GDI32.dll) usually works fine.
Only when i'm using Notepad.exe (both Windows XP and Windows 7/64), the hook routine is triggered twice, even though the check in ApiMonitor that the api is called only once.
Anyone have any idea about it?
Thank you.
Hook on StartPage (GDI Print API)
Re: Hook on StartPage (GDI Print API)
I can't imagine that the hook callback is fired twice accidently. My best guess is that either the API was really called twice (but why does it not show in ApiMonitor? don't know), or maybe you called HookAPI twice with the same callback routine? But why then does it only occur with Notepad? Don't really know, I'm just guessing...
-
- Posts: 4
- Joined: Thu Apr 01, 2010 12:43 pm
Re: Hook on StartPage (GDI Print API)
Hello Madshi,
I did a small test project, which can show what I'm saying.
In this project, by injecting into Notepad, or any other process, it will log every passage in the StartPage.
I did a small test project, which can show what I'm saying.
In this project, by injecting into Notepad, or any other process, it will log every passage in the StartPage.
Re: Hook on StartPage (GDI Print API)
Does it happen with both 32bit and 64bit Notepad? Also in XP 32bit OS?
-
- Posts: 4
- Joined: Thu Apr 01, 2010 12:43 pm
Re: Hook on StartPage (GDI Print API)
Yes, tested on Windows 7 64 and Windows XP 32.