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 development | Windows API - Win32
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | C++
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,681 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.