xuexixuexi2
V2EX  ›  问与答

Wine 怎么判断系统版本?

  •  
  •   xuexixuexi2 · Feb 5, 2016 · 4173 views
    This topic created in 3761 days ago, the information mentioned may be changed or developed.

    在 Windows 下用 GetVersionEx 可以知道所在 Windows 的版本,是 Win2000 ,还是 WinXP ,还是 Win7 等等
    如果在 Linux+Wine 下调用这个函数,会得到 Windows XP ,我用的 Wine 是 1.6.2 版
    Wine 有没有专门提供一个 API ,能让程序知道它不是运行在真正的 Windows 下,而是运行在 Wine 下?最好还能取 Wine 的版本号。

    3 replies    2016-02-05 10:16:12 +08:00
    aliuwr
        2
    aliuwr  
       Feb 5, 2016   ❤️ 1
    Wine 可以在 winecfg 中手动设置所模拟的 Windows 版本,一般情况下都是 XP 。
    tobyxdd
        3
    tobyxdd  
       Feb 5, 2016   ❤️ 1
    wine_get_version
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2678 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 10:55 · PVG 18:55 · LAX 03:55 · JFK 06:55
    ♥ Do have faith in what you're doing.