如何判断XP操作系统是否打了SP2?

gaooo 2004-10-20 03:51:07
d
...全文
136 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
oyljerry 2004-10-20
  • 打赏
  • 举报
回复
看注册表有否sp的信息
louifox 2004-10-20
  • 打赏
  • 举报
回复
BOOL GetVersionEx(
LPOSVERSIONINFO lpVersionInfo // version information
);
OSVERSIONINFOEX
The OSVERSIONINFOEX structure contains operating system version information. The information includes major and minor version numbers, a build number, a platform identifier, and information about product suites and the latest Service Pack installed on the system. This structure is used with the GetVersionEx and VerifyVersionInfo functions.

typedef struct _OSVERSIONINFOEX {
DWORD dwOSVersionInfoSize;
DWORD dwMajorVersion;
DWORD dwMinorVersion;
DWORD dwBuildNumber;
DWORD dwPlatformId;
TCHAR szCSDVersion[ 128 ];
WORD wServicePackMajor;
WORD wServicePackMinor;
WORD wSuiteMask;
BYTE wProductType;
BYTE wReserved;
} OSVERSIONINFOEX, *POSVERSIONINFOEX, *LPOSVERSIONINFOEX;
研究一下上面两个东西。
mynamelj 2004-10-20
  • 打赏
  • 举报
回复
看看注册表当中有没有记录
gdy119 2004-10-20
  • 打赏
  • 举报
回复
编程实现,,没有头绪,,gz!

18,357

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧