简体   繁体   English

如何通过Lingo检测Windows是64x还是86x(Adobe Director)

[英]How to detect if Windows is 64x or 86x via Lingo (Adobe Director)

I was wondering if its possible to detect if a costumer's Windows is 64x or 86x based via Director. 我想知道是否可以通过Director检测客户的Windows是64x还是86x。 The reason for this is that some Xtras don't work as intended when running on a 64x windows, and I wanted to create 2 versions of my program for better compatibility. 原因是某些Xtras在64x的Windows上运行时无法按预期运行,我想为程序创建2个版本以获得更好的兼容性。

If possible, I wanted a code based solution, with no other program involved other than Director. 如果可能的话,我想要一个基于代码的解决方案,除了Director之外没有其他程序。

You can try using BuddyAPI and the baVersion( "Wow64" ) code. 您可以尝试使用BuddyAPI和baVersion(“ Wow64”)代码。 this will return 1 if running as a 32 bit application under 64 bit Windows. 如果在64位Windows下作为32位应用程序运行,则将返回1。 Since projectors are only 32 bit applications, this will be true if Windows is 64 bit. 由于投影仪仅是32位应用程序,因此如果Windows是64位,这将是正确的。 It will return 0 if running under 32 bit Windows. 如果在32位Windows下运行,它将返回0。 baVersion ("64Bit" ) will return 1 if running under a 64 bit processor, regardless of the Windows version. 如果在64位处理器下运行,无论Windows版本如何,baVersion(“ 64Bit”)都将返回1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM