GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?
Christian Franke
Christian.Franke@t-online.de
Sun Mar 24 14:42:36 GMT 2024
Corinna Vinschen via Cygwin wrote:
> 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?
>
I tried, but without success. Unfortunately debug_printf() does not work
because wincap.init() is called before get_cygwin_startup_info() which
calls strace.activate().
More information about the Cygwin
mailing list