Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • I did tried to create a dummy program to test out GetVersion and it's working fine. Commented Jan 14, 2023 at 5:04
  • Besides that there are also some function that is not deprecated that has the same footprint. Commented Jan 14, 2023 at 5:04
  • Deprecated means you shouldn't use it, not you can't. However, GetVersion() does anyway lie all the time unless your application happens to run with a manifest that proclaims full compatibility with the Windows release on which it runs. For the truth use RtlGetVersion or consult KUSER_SHARED_DATA. Either way, what you encountered is more about API sets than about whether GetVersion is deprecated. Commented Jan 14, 2023 at 10:29
  • @MegaTonnage: I think in this question it's more about the API Sets rather than about why it's deprecated or so. Commented Jan 14, 2023 at 10:41