How to get WinBuild info using C/C++

310 Views Asked by At

The WinBuild information can be obtained using the Powershell command "(Get-Item C:\Windows\System32\kernel32.dll).VersionInfo | format-list". This returns the following FileVersion info:

FileVersion : 10.0.17763.1697 (WinBuild.160101.0800)

I need to obtain the same FileVersion using C or C++. The GetFileVersionInfo and VerQueryValue combination only gives me 10.0.17763.1697 but I need "WinBuild.160101.0800" as well.

0

There are 0 best solutions below