[PR #3696] About Dialog OS Version #25484

Open
opened 2026-01-31 09:09:47 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/3696

State: closed
Merged: No


Summary of the Pull Request

Adds the user's full Windows version to the About dialog page. This reduces the amount of work a user must perform to open an Issue.

References

https://docs.microsoft.com/en-us/windows/win32/sysinfo/getting-the-system-version

PR Checklist

Detailed Description of the Pull Request / Additional comments

PR adds a function _GetWindowVersion to TerminalPage which queries the version of an important Sytem32 DLL. The About dialog page uses this function to query the system version. While the referenced link on getting the Windows version suggests querying kernel32.dll, I found its version number was inconsistent compared to the version given when ver is run in a cmd terminal. This implementation queries KernelBase.dll instead which gives the correct version.

PR also changes the Windows Terminal version line to read WT Version: x.x.x.x to clearly differentiate the OS and WT versions.

Validation Steps Performed

To validate the correctness of the About dialog OS version:

  • Run the command ver in a cmd terminal
  • Open the About dialog page in WT
  • Compare the two Windows version numbers

To test error checking and case where DLL does not exist, I replaced KernelBase.dll with does_not_exist.dll and re-ran WT and got the expected OS Version: 0.0.0.0 <arch>.

ver-number in-progress
**Original Pull Request:** https://github.com/microsoft/terminal/pull/3696 **State:** closed **Merged:** No --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request Adds the user's full Windows version to the About dialog page. This reduces the amount of work a user must perform to open an Issue. <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References https://docs.microsoft.com/en-us/windows/win32/sysinfo/getting-the-system-version <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #3616 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Requires documentation to be updated * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #3616 <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments PR adds a function `_GetWindowVersion` to `TerminalPage` which queries the version of an important Sytem32 DLL. The About dialog page uses this function to query the system version. While the referenced link on getting the Windows version suggests querying `kernel32.dll`, I found its version number was inconsistent compared to the version given when `ver` is run in a `cmd` terminal. This implementation queries `KernelBase.dll` instead which gives the correct version. PR also changes the Windows Terminal version line to read `WT Version: x.x.x.x` to clearly differentiate the OS and WT versions. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed To validate the correctness of the About dialog OS version: - Run the command `ver` in a `cmd` terminal - Open the About dialog page in WT - Compare the two Windows version numbers To test error checking and case where DLL does not exist, I replaced `KernelBase.dll` with `does_not_exist.dll` and re-ran WT and got the expected `OS Version: 0.0.0.0 <arch>`. <img width="383" alt="ver-number" src="https://user-images.githubusercontent.com/28279285/69572005-1588cb00-0f78-11ea-8041-28807f396c91.PNG"> <img width="309" alt="in-progress" src="https://user-images.githubusercontent.com/28279285/69578973-69021580-0f86-11ea-92f9-bfd326d6d6d2.PNG">
claunia added the pull-request label 2026-01-31 09:09:47 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25484