Getting windows version using c++
Go to solution
Solved by Unimportant,
5 hours ago, Shammikit said:im trying to get the windows OS version (eg: professional,ultimate,home,etc) using c++. i have already done some searching but the only thing that i came across are codes where people would write some if conditions and printf statements like: printf("windows 10"). im trying to get the entire windows name including its version like (windows 10 home). how can i achieve this
It can be done with WMI, getting data from the Win32_OperatingSystem class
Here's an example, using c++: https://msdn.microsoft.com/en-us/library/aa390423(VS.85).aspx
Extremely convoluted, for such as simple task, in the usual microsoft way.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now