From 52cee9ebbb89b66bcf8d8d4e62b94dd1b0e0af22 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Sun, 20 Feb 2022 21:32:12 +0200 Subject: [PATCH] GUI: Show OS build in Properties - About --- ExplorerPatcher/GUI.c | 8 ++++++++ ExplorerPatcher/settings.reg | 5 +++-- ExplorerPatcher/settings10.reg | 5 +++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ExplorerPatcher/GUI.c b/ExplorerPatcher/GUI.c index a76e83d..ddabd37 100644 --- a/ExplorerPatcher/GUI.c +++ b/ExplorerPatcher/GUI.c @@ -1116,6 +1116,14 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) #endif ); } + + p = strstr(line, "%OSVERSIONSTRING%"); + if (p) + { + RTL_OSVERSIONINFOW rovi; + DWORD32 ubr = VnGetOSVersionAndUBR(&rovi); + sprintf_s(p, MAX_PATH, "%d.%d.%d.%d.", rovi.dwMajorVersion, rovi.dwMinorVersion, rovi.dwBuildNumber, ubr); + } } ZeroMemory(text, (MAX_LINE_LENGTH + 3) * sizeof(wchar_t)); MultiByteToWideChar( diff --git a/ExplorerPatcher/settings.reg b/ExplorerPatcher/settings.reg index 2da922c..0d8ff04 100644 --- a/ExplorerPatcher/settings.reg +++ b/ExplorerPatcher/settings.reg @@ -546,8 +546,9 @@ ;e Version %VERSIONINFORMATIONSTRING% ;t © 2006-2022 VALINET Solutions SRL. All rights reserved. ;e -;e This project aims to bring back a productive working environment on Windows 11. -;t Proudly engineered by Valentin-Gabriel Radu. +;e This project aims to enhance the working environment on Windows. +;e Proudly engineered by Valentin-Gabriel Radu. +;t Running on Windows 11, OS Build %OSVERSIONSTRING% ;y Visit project GitHub (https://github.com/valinet) 🡕 ;https://github.com/valinet ;q diff --git a/ExplorerPatcher/settings10.reg b/ExplorerPatcher/settings10.reg index ceacf7b..fcf1485 100644 --- a/ExplorerPatcher/settings10.reg +++ b/ExplorerPatcher/settings10.reg @@ -466,8 +466,9 @@ ;e Version %VERSIONINFORMATIONSTRING% ;t © 2006-2022 VALINET Solutions SRL. All rights reserved. ;e -;e This project aims to enhance the working environment on Windows 10. -;t Proudly engineered by Valentin-Gabriel Radu. +;e This project aims to enhance the working environment on Windows. +;e Proudly engineered by Valentin-Gabriel Radu. +;t Running on Windows 10, OS Build %OSVERSIONSTRING% ;y Visit project GitHub (https://github.com/valinet) 🡕 ;https://github.com/valinet ;q