GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?
Corinna Vinschen
corinna-cygwin@cygwin.com
Sat Mar 23 21:04:49 GMT 2024
On Mar 23 10:57, Christian Franke via Cygwin wrote:
> On Mar 21 16:15, Corinna Vinschen via Cygwin wrote:
> > On Mar 21 09:58, Christian Franke via Cygwin wrote:
> > > > > ..
> > I just gave it a try on W11. The results are even more funny than I
> > anticipated:
> >
> > ...
> >
> > So, yeah, with your observations especially on older W10 versions and
> > with 8.1 doing the same thing, I guess we can safely drop the extra call
> > to RtlGetNtVersionNumbers now.
>
> Or:
> Keep RtlGetVersionNumbers, compare result with RtlGetVersion and emit debug
> output if both differ. This would allow to diagnose a possible future
> reappearance of the issue.
Good idea! Do you want to create a patch?
Thanks,
Corinna
More information about the Cygwin
mailing list