C++ 检测操作系统版本

标签 c++ windows

我想知道如何使用 C++ 检测正在运行的操作系统以及安装了哪个服务包

最佳答案

我假设您正在使用 Win32 编写非托管 C++?查看 Win32 API GetVersionEx .

关于C++ 检测操作系统版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4207466/

相关文章:

c++ - 正则表达式? - 海峡发现? - C++ - Windows 7 - 尝试在 pong irc 上回答

windows - 如何在 Windows 上批量推送多个文件夹

c++ - 多线程策略? (通过Editor在多线程引擎中修改场景)

c++ - 从现有的时髦代码结构创建 Visual Studio 项目

c++ - swprintf 截断导致意外输出

c++ - 为什么 free() 使我的程序陷入困境?

windows - 批量使用密码的最佳做法是什么?

r - 如何更改英文工作日缩写?

c++ - Eclipse (C++) 的 undefined reference 错误

windows - 为什么出现 “Insert the diskette that contains the batch file and press any key when ready.”消息?