[SOLVED] Uniface 32bit or 64bit

Author: gianni.sandigliano@unifacesolutions.com (gianni)

$about => NO /who => NO Is there a way to know if Uniface runtime in use is 32bit or 64bit ? Thanks for any hint... Gianni


  1. Hi, I think you can use $setting to work this out. On 32 bit Uniface (even on 64 bit operating system) $setting("","PROCESSOR_ARCHITECTURE","ENVDATA") will return "x86" However, on 64 bit Uniface $setting("","PROCESSOR_ARCHITECTURE","ENVDATA") will return "AMD64" Regards, Mark

    Author: Mark Rennison (mark.rennison@tribalgroup.com)
  2. Hello, you can detect it from environment variables PROCESSOR_ARCHITECTURE and PROCESSOR_ARCHITEW6432. We use this to detect 32bit on 32bit ... or ... 32bit on 64bit ... or ... 64bit on 64bit. In Uniface, you use $setting("", "PROCESSOR_ARCHITEW6432", "ENVDATA") and $setting("", "PROCESSOR_ARCHITECTURE", "ENVDATA"). Some basic info can be found here https://blogs.msdn.microsoft.com/david.wang/2006/03/27/howto-detect-process-bitness/ or try to Google of course. Hope this helps, Zdeněk Socha

    Author: sochaz (zdenek.socha@fullsys.cz)
  3. Thanks Mark and Zdenek! This thread can be marked as SOLVED (for Windows platform)! Gianni

    Author: gianni (gianni.sandigliano@unifacesolutions.com)