System.PlatformDetection.GetWindowsMinorVersion C# (CSharp) Method

GetWindowsMinorVersion() private static method

private static GetWindowsMinorVersion ( ) : int
return int
        private static int GetWindowsMinorVersion()
        {
            if (IsWindows)
            {
                RTL_OSVERSIONINFOEX osvi = new RTL_OSVERSIONINFOEX();
                osvi.dwOSVersionInfoSize = (uint)Marshal.SizeOf(osvi);
                Assert.Equal(0, RtlGetVersion(out osvi));
                return (int)osvi.dwMinorVersion;
            }

            return -1;
        }