GetProductInfo (API function) seems to crash on XP Professional, while it works fine on Windows 7 Ultimate. What is an alternative to this?
GetProductInfo
Windows XP does not implement the GetProductInfo function. This Microsoft page provides some code for getting an OS version, including XP. Although this is not one liner!