简体   繁体   English

如何检查 Windows 是嵌入式还是 POS?

[英]How to check if Windows is embedded or POS?

I am developing a program that I do not want to be installed on embedded versions of windows.我正在开发一个不想安装在 Windows 嵌入式版本上的程序。 Is there an API call I can make or some standard way of detecting if the current windows version is embedded/pos?是否有我可以进行的 API 调用或检测当前 Windows 版本是否已嵌入/pos 的一些标准方法?

Maybe, this helps.也许,这有帮助。 You have to use the OSVERSIONINFOEX struct and check the wSuiteMask member...您必须使用 OSVERSIONINFOEX 结构并检查 wSuiteMask 成员...

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724833%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/windows/desktop/ms724833%28v=vs.85%29.aspx

Have a look at the Windows Management Instrumentation classes.查看 Windows Management Instrumentation 类。 In particular, you should be able to get what you want from the Win32_OperatingSystem class object and its various member elements.特别是,您应该能够从Win32_OperatingSystem 类对象及其各种成员元素中获得所需的内容。 It provides a bit more information than the OSVERSIONINFOEX structure.它提供的信息比 OSVERSIONINFOEX 结构多一点。

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

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