Tuesday, 26 May 2009

How to get the service pack number using the WIN32 API

To get the service pack number on a Windows machine you can call the GetVersionEx function and pass a pointer to a OSVERSIONINFOEX struct. OSVERSIONINFOEX has two members, wServicePackMajor and wServicePackMinor, which holds the service pack information.

No comments:

Post a Comment