Added detection of the Service Pack to GetRealOSVersion() function.