Thanks for the info! I tried to use the function but trying to include either wdm.h or Ntddk.h errors out. Unfortunately I don't know how to look for a file in Windows so I don't even know if those files are present.
That's a kernel api for use in drivers. Not in applications. You need the device driver developer kit to get to the headers.
It's not supposed to be used from a user land application.
But note the documentation comment that says: “RtlGetVersion is the kernel-mode equivalent of the user-mode GetVersionEx function in the Windows SDK. ".
Tldr, user mode applications are supposed to use GetVersionEx().