public static void DetourBarrierGetAddressOfReturnAddress(out IntPtr returnValue) { if (Is64Bit) { HandleErrorCode(NativeApi64.DetourBarrierGetAddressOfReturnAddress(out returnValue)); } else { HandleErrorCode(NativeApi32.DetourBarrierGetAddressOfReturnAddress(out returnValue)); } }