api-hook

intercepting javascript alert()..? is it acceptable?

Hi, I just found we can intercept the javascript alert() native call and hook the user code before the actual execution. check out the sample code.. function Test(){ var alertHook=function(aa){ this.alert(aa); } this.alert("aa"); this.alert = alertHook; alert("aa"); } so everytime i call alert("aa") ...

How do I set a system-wide API hook in Delphi?

Does anyone know about system-wide API hooking with Delphi? I downloaded madCodeHook, but it doesn't have any source, so I don't want use it; I want to program it myself. I found an article on Code Project, but it is in C++. Please help me to write it in Delphi 2010. ...

API Hook on a COM object function?

Greetings StackOverflowians, As discovered here, Windows 7 features a bug in which the DISPID_BEFORENAVIGATE2 event does not fire for Windows Explorer instances. This event allows shell extensions to be notified when a navigation is about to take place, and (most importantly for me) have the opportunity to cancel the navigation. I've ...