public static void DetourInstallHook( IntPtr entryPoint, IntPtr hookProcedure, IntPtr callback, IntPtr handle) { if (Is64Bit) { HandleErrorCode(NativeApi64.DetourInstallHook(entryPoint, hookProcedure, callback, handle)); } else { HandleErrorCode(NativeApi32.DetourInstallHook(entryPoint, hookProcedure, callback, handle)); } }