Where to find correct version information using in C on Windows

Thad T 26 Reputation points
2024-06-22T22:13:39.2533333+00:00

I'm looking to programmatically find the correct version information for Windows using the "C" programming language. I've searched online with no luck. Does anyone know where I can find resources to help me achieve this goal?

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,518 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,657 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,765 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 86,036 Reputation points
    2024-06-22T22:36:35.43+00:00

    With RtlGetVersion like in this thread https://learn.microsoft.com/en-us/answers/questions/595325/need-to-get-real-os-version

    (or APIs from Winbrand.dll on Windows 11, like BrandingFormatString)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.