-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Windows context to detect edition (home vs pro etc) #730
Comments
This would likely require using the Windows API directly, as I don't see a way to retrieve this information with |
Yep, it is one system-call away! https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getproductinfo I'll see if I can draft a PR for this. |
Nice, thank you! |
The version is covered already by the build number! Windows 10.0.26100 is for example (confusingly) Windows 11. The only missing bit is Home, Pro, Ultimate etc |
It would be useful to detect the Windows edition as part of the context as those can differ a fair bit in some ways.
The text was updated successfully, but these errors were encountered: