1. A computer implemented method performed by one or more processors for installing software hooks into software code, the method comprising the following operations: identify a target method and a hook code, where the hook code is to execute instead of at least a portion of the target method, and wherein the target method and the hook code are executed within a managed code environment; locate a compiled version of the target method and a compiled version of the hook code in memory, where the compiled versions of the target method and the hook code are compiled in native code; and modify the compiled version of the target method to direct execution of at least a portion of the compiled version of the target method to the compiled version of the hook code.