qga-win: Detect Windows 11 by build number
authorKostiantyn Kostiuk <konstantin@daynix.com>
Tue, 14 Sep 2021 10:58:13 +0000 (10:58 +0000)
committerKostiantyn Kostiuk <konstantin@daynix.com>
Mon, 10 Jan 2022 13:05:25 +0000 (13:05 +0000)
commit206ce9699fae1f631ac74b7e1115db2affc759fd
treedc82c6c006655eff92800c77d77a031cdaa80486
parent92857cd73848a488506fbe937e0a978c42d52e2c
qga-win: Detect Windows 11 by build number

Windows 10 and 11 have the same major and minor versions.
So, the only way to determine the correct version is to
use the build number.

After this commit, the guest agent will return the proper
"version" and "version-id" for Windows 11. The "pretty-name"
is read from the registry and will be incorrect until the
MS updates the registry. We only can create some workaround
and replace 10 to 11.

Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
qga/commands-win32.c