Link to home
Start Free TrialLog in
Avatar of Swemetal
Swemetal

asked on

Global API hook.

How do i global hook an API function and replace it with something else? I read somewhere how to hook an API function, but just for you own application, do i need to inject a dll to every process? No MFC.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Swemetal
Swemetal

ASKER

Is detours the only way of making an API hook global?
No, it is not the only way, but the one I would go if had to do that on MS systems.
And my other options are? Injecting a dll to every process?
Yes, I would say injecting dlls to your processes.
Best Regards,
Deepu
Are you really really sure that deutors and dll injecting to every process is the only way of making an API hook global?