Implementing a native function detour in C#
lowleveldesign.wordpress.com