github.com/metacubex/mihomo@v1.18.5/constant/features/version_windows.go (about)

     1  package features
     2  
     3  import "golang.org/x/sys/windows"
     4  
     5  func init() {
     6  	version := windows.RtlGetVersion()
     7  	WindowsMajorVersion = version.MajorVersion
     8  	WindowsMinorVersion = version.MinorVersion
     9  	WindowsBuildNumber = version.MinorVersion
    10  }