Share via

Windows 11 DLLs not showing the correct version

Anonymous
2021-10-19T09:29:35+00:00

Hi,

the function RtlGetNtVersionNumbers in ntdll.dll and the macro VerifyVersionInfo from kernel32.dll both return MAJOR_VERSION 10 in Windows 11.

Why is that? Is there a new way of checking the OS version? I need this for development.

Running Windows 11 Pro, Build 22000.258, on a Hyper-V VM.

Thanks

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2021-10-19T10:08:10+00:00

You need both major, minor and build number to correctly identify windows 11.

See this good article that shows what real version number are for all the windows. https://www.lifewire.com/windows-version-numbers-2625171

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-10-19T16:44:39+00:00

    Hi Sumit,

    I don't understand or appreciate the tone, but your answer gave me insight on the cause of the problem, not a way to fix it. It is always helpful to learn about the cause, but my main concern is a viable solution. Though I appreciate your efforts, a viable solution was provided in a different answer.

    Was this answer helpful?

    0 comments No comments
  2. Sumit D - IA 171.1K Reputation points Independent Advisor
    2021-10-19T15:35:13+00:00

    Hi Anastasis_

    You may not like the answer, but this is true, and by design.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2021-10-19T10:24:39+00:00

    Thanks, this is very helpful!

    Was this answer helpful?

    0 comments No comments
  4. Sumit D - IA 171.1K Reputation points Independent Advisor
    2021-10-19T10:03:28+00:00

    Hi Anastasis,

    I am Sumit here to assist you with this question.

    Microsoft has not increased the Kernel number in Windows 11 to maintain compatibility, hence you see certain DLLs returning Windows 10 as version. This is by design, as Microsoft told us.

    Hope that helps.

    Was this answer helpful?

    0 comments No comments