1. In a computer system running an operating system platform, a method comprising: hooking at least one application program interface (API) routine; and replacing hooked API routine code with different code; wherein the replacing the hooked API routine code with different code, further comprises: storing an API routine address associated with a re-direction of flow of execution; wherein enhanced privileges relating to memory space associated with the API routine are enabled; wherein the method is adapted for preventing intrusions.