Try to warn if we're running the 32-bit version on 64-bit windows (WoW64) (#1569).
[dcpomatic.git] / src / lib / cross.cc
index 171bf2c8100767bb79d8d5b610767c768a44e705..a7fb298cb0b6084b88435f85eaae67d06adc5966 100644 (file)
@@ -501,3 +501,16 @@ command_and_read (string cmd)
 
        return "";
 }
+
+/** @return true if this process is a 32-bit one running on a 64-bit-capable OS */
+bool
+running_32_on_64 ()
+{
+#ifdef DCPOMATIC_WINDOWS
+       BOOL p;
+       IsWow64Process (GetCurrentProcess(), &p);
+       return p;
+#endif
+       /* XXX: assuming nobody does this on Linux / OS X */
+       return false;
+}