954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

system wide api hook

What is the best way to do system wide user mode (NOT KERNEL MODE) api hook on Windows NT?

denis1401
Newbie Poster
2 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 
Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

thanks, but I'm not interested in these hooks (like keyboard hooks, mouse event hooks, etc.)
I need to intercept/hook every call to a certain win32 api function on the system
How do I do that (without modifing the dll files on disk)?

denis1401
Newbie Poster
2 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

you can use the WH_CALLWNDPROC hook if the process you want has a window. Other than that, I don't know if its even possible to do what you want.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

One way might be: open every process, find if they import that particular function, if they do find where they call it and idk you solve the rest.

MosaicFuneral
Posting Virtuoso
1,691 posts since Nov 2008
Reputation Points: 888
Solved Threads: 116
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You