用于确定 Service Pack 版本的 Windows API

发布于 2024-07-11 22:37:45 字数 161 浏览 5 评论 0原文

我们正在开发 Vista 的设备驱动程序。 SPO 中有一个已知错误(已在 SP1 中修复)。 我们有一个仅在 SP0 中有效的解决方法(并破坏 SP1 中的行为)。

是否有 Windows API 或其他方法来判断安装的 Service Pack 版本? (以编程方式)。

We're working on a device driver for Vista.
There's a known bug in SPO (that was fixed in SP1). We have a workaround that only works in SP0 (and destroys the behavior in SP1).

Is there a Windows API or another way to tell what Service Pack version is installed? (Programmatically).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

§普罗旺斯的薰衣草 2024-07-18 22:37:45

您可能特别需要函数 GetVersionEx关联 OSVERSIONINFOEX 的 wServicePackMajor 和 wServicePackMinor 成员结构。

我假设您是在驱动程序内部执行此操作,而不是从 Web 应用程序或给定 asp.net 标记的其他内容执行此操作。

You probably want the function GetVersionEx, in particular the wServicePackMajor and wServicePackMinor members of the associated OSVERSIONINFOEX structure.

I'm assuming you are doing this internally in your driver and not from a web app or something given the asp.net tag.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文