Just found that wonderful Detours package from Microsoft: http://research.microsoft.com/en-us/projects/detours/ Is there something like this for Linux, maybe even written in/available for D?