运行时判断程序是否在 Wine 下运行
我认为标题是不言自明的...我正在用 C++ 编写一个应用程序,我需要在运行时确定我是否在 Wine 下运行(稍微改变一下行为以避免特定的 Wine bug)。 有没有一种程序员友好的方式或者我应该摆弄正在运行的进程?
I think the title is self explanatory... I'm writing an application in C++ and I need to determine at runtime if I'm running under Wine (to change the bahavior a little in order to avoid a specific Wine bug).
Is there a programmer-friendly way or should I fiddle with running processes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这个答案只是用户1457056的评论的副本。由于链接经常失效,答案有时会变得毫无用处。我已将链接内容复制到此处,以保留这个有用的答案:
This answer is just a copy of user1457056's comment. Since links often die, answers occasionally become useless. I have copied the link content here in order to preserve this useful answer:
有许多 Wine 特定的注册表项:
检查注册表项是否存在 具有如何检查这些特定于 Wine 的注册表项的答案。
There are many Wine specific registry entries:
Checking if a registry key exists has the answer of how to check for these Wine-specific registry keys.