GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

Bill Stewart bstewart@iname.com
Tue Mar 19 14:03:09 GMT 2024


On Tue, Mar 19, 2024 at 4:21 AM Christian Franke wrote:

Cygwin uses the undocumented RtlGetNtVersionNumbers() from ntdll.dll
> because even RtlGetVersion() may not return the correct values. See
> function wincapc::init()
>
> https://cygwin.com/git/?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/wincap.cc
>

Can you please clarify the circumstances under which the RtlGetVersion
function "may not return the correct values"?

(I am not aware of any, hence the question.)

Bill


More information about the Cygwin mailing list