Hooking CreateWindowEx_ function from user32.dll
Posted: Wed Apr 01, 2009 3:09 pm
Hello, I'm trying to write a NTService that kills the process of some P2P programs (specifically Ares and LimeWire
).
I once saw here a snippet of code that hooked a function (I think it was CreateWindowEx_ from user32.dll), but sadly I cannot find the post and I cannot remember how it was the method of hooking that specific function from the DLL.
The things I remember are that the snippet hooked, and everytime a top level window was created it displayed a MessageRequester with the title and the hWnd.
Any hints of that post, or some way to do it?
Thanks in advance.
I once saw here a snippet of code that hooked a function (I think it was CreateWindowEx_ from user32.dll), but sadly I cannot find the post and I cannot remember how it was the method of hooking that specific function from the DLL.
The things I remember are that the snippet hooked, and everytime a top level window was created it displayed a MessageRequester with the title and the hWnd.
Any hints of that post, or some way to do it?
Thanks in advance.