示例#1
0
        public static OsVersionInfo GetOsVersion()
        {
            var info = new OsVersionInfo(Marshal.SizeOf(typeof(OsVersionInfo)));

            RtlGetVersion(ref info);

            CheckLastError();

            return(info);
        }
示例#2
0
 public static extern bool RtlGetVersion(ref OsVersionInfo versionInfo);