了解在 XP 嵌入式上运行
有没有办法查明我的程序是否在嵌入式 XP 上运行?我尝试过 .NET System.Environment.OSVersion,但版本信息看起来就像“正常”Windows XP 的版本信息,除了次要版本号之外,并且依赖它对我来说似乎很脆弱。
Is there a way to find out if my program is running on XP embedded? I've tried .NET System.Environment.OSVersion, but the version information looks like that of a "normal" Windows XP, except for the minor version number, and relying on that seems to fragile to me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Egg Head Cafe 上的 Microsoft eMVP (Bing Chen) 建议 GetVersionEx 和特定的版本注册表项...
虽然 Helen Elcock 建议查找 FBA 注册表值:
GetVersionEx 似乎是更稳定的方法,因为有人可能会删除 FBA 密钥以节省另外几个字节,但我不确定删除该密钥是否会导致 FBA 再次运行。这两种方法都可能适合您。
A Microsoft eMVP (Bing Chen) on Egg Head Cafe suggests GetVersionEx and a particular version registry key...
While Helen Elcock suggests looking for the FBA registry value:
GetVersionEx seems like the more stable approach, because someone might remove the FBA key in an effort to save another couple bytes, but I'm not sure if removing that key would cause the FBA to run again anyway. You'll probably be fine with either approach.