1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-01-19 01:04:08 +01:00

GUI: Show OS build in Properties - About

This commit is contained in:
Valentin Radu 2022-02-20 21:32:12 +02:00
parent 6e21fa70e3
commit 52cee9ebbb
3 changed files with 14 additions and 4 deletions

View File

@ -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(

View File

@ -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

View File

@ -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