Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osversion: add "Unmanifested" const #1546

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions osversion/windowsbuilds.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
package osversion

const (
// Unmanifested is the build number that is returned if the binary
// is unmanifested. Unmanifested binaries do not return their actual version
// number, so the OSVersion does not contain correct versions, and should
// not be used.
//
// Note that 9200 was also the build number for Windows Server 2012,
// Windows RT, Windows RT 8.1, and Windows 8. These versions are obsolete,
// so should no longer be expected (but if you do, don't use this const).
//
// This const can be used to check if a binary is manifested.
Unmanifested = 9200

// RS1 (version 1607, codename "Redstone 1") corresponds to Windows Server
// 2016 (ltsc2016) and Windows 10 (Anniversary Update).
RS1 = 14393
Expand Down