예제 #1
0
파일: OSInfo.cs 프로젝트: UntilNick/PCInfo
        public static string GetServicePack()
        {
            var servicePack = string.Empty;

            if (NativeMethods.GetVersionEx(ref osVersionInfo))
            {
                servicePack = new Structures.OSVERSIONINFOEX
                {
                    dwOSVersionInfoSize = Marshal.SizeOf(typeof(Structures.OSVERSIONINFOEX))
                }.szCSDVersion;
            }

            return(servicePack);
        }
예제 #2
0
 public static extern bool GetVersionEx(ref Structures.OSVERSIONINFOEX osVersionInfo);