Beispiel #1
0
 string GetServicePack()
 {
     OSVERSIONINFO os = new OSVERSIONINFO();
     os.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFO));
     GetVersionEx(ref os);
     if (os.szCSDVersion == "")
         return "        No Service Pack installed";
     else
         return "        " + os.szCSDVersion;
 }
Beispiel #2
0
        string GetServicePack()
        {
            OSVERSIONINFO os = new OSVERSIONINFO();

            os.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFO));
            GetVersionEx(ref os);
            if (os.szCSDVersion == "")
            {
                return("        No Service Pack installed");
            }
            else
            {
                return("        " + os.szCSDVersion);
            }
        }
Beispiel #3
0
 public static extern short GetVersionEx(ref OSVERSIONINFO o);
Beispiel #4
0
 public static extern short GetVersionEx(ref OSVERSIONINFO o);