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

2024-03-24 Thread Corinna Vinschen via Cygwin
On Mar 24 15:42, Christian Franke via Cygwin wrote: > 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

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

2024-03-24 Thread Christian Franke via Cygwin
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,

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

2024-03-23 Thread Corinna Vinschen via Cygwin
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,

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

2024-03-23 Thread Christian Franke via Cygwin
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,

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

2024-03-23 Thread Corinna Vinschen via Cygwin
On Mar 22 18:13, Ray Satiro via Cygwin wrote: > On 3/21/2024 11:15 AM, Corinna Vinschen via Cygwin wrote: > >https://cygwin.com/cgit/newlib-cygwin/commit/?id=48511f3d3847c > > The code in that commit doesn't look right. RtlGetNtVersionNumbers is a void > function The code doesn't request a

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

2024-03-22 Thread Ray Satiro via Cygwin
On 3/21/2024 11:15 AM, Corinna Vinschen via Cygwin wrote: On Mar 21 09:58, Christian Franke via Cygwin wrote: Corinna Vinschen via Cygwin wrote: On Mar 20 12:39, Christian Franke via Cygwin wrote: Corinna Vinschen via Cygwin wrote: You have to create an application with an application

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

2024-03-21 Thread Corinna Vinschen via Cygwin
On Mar 21 09:58, Christian Franke via Cygwin wrote: > Corinna Vinschen via Cygwin wrote: > > On Mar 20 12:39, Christian Franke via Cygwin wrote: > > > Corinna Vinschen via Cygwin wrote: > > > > You have to create an application with an application manifest not > > > > supporting your OS. > > > >

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

2024-03-21 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Mar 20 12:39, Christian Franke via Cygwin wrote: Corinna Vinschen via Cygwin wrote: You have to create an application with an application manifest not supporting your OS. For Cygwin apps, this occured when you built, say, an executable under Windows 8.1

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

2024-03-20 Thread Corinna Vinschen via Cygwin
On Mar 20 12:39, Christian Franke via Cygwin wrote: > Corinna Vinschen via Cygwin wrote: > > You have to create an application with an application manifest not > > supporting your OS. > > > > For Cygwin apps, this occured when you built, say, an executable under > > Windows 8.1 before Windows 10

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

2024-03-20 Thread Bill Stewart via Cygwin
On Wed, Mar 20, 2024 at 5:40 AM Christian Franke wrote: Corinna Vinschen via Cygwin wrote: > > > For Cygwin apps, this occured when you built, say, an executable under > > Windows 8.1 before Windows 10 support was added to the Cygwin toolchain: > > the manifest linked to the Cygwin executable

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

2024-03-20 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Mar 19 09:18, Bill Stewart via Cygwin wrote: On Tue, Mar 19, 2024 at 9:01 AM Richard Campbell wrote: On Tue, Mar 19, 2024 at 9:04 AM Bill Stewart via Cygwin wrote: Can you please clarify the circumstances under which the RtlGetVersion function "may not

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

2024-03-19 Thread Bill Stewart via Cygwin
On Tue, Mar 19, 2024 at 10:21 AM Corinna Vinschen wrote: On Mar 19 09:18, Bill Stewart via Cygwin wrote: > > > I'm not sure of the exact scenario that led to the "RtlGetVersion is > > subject to manifesting" conclusion, but I can't reproduce it. > > You have to create an application with an

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

2024-03-19 Thread Corinna Vinschen via Cygwin
On Mar 19 09:18, Bill Stewart via Cygwin wrote: > On Tue, Mar 19, 2024 at 9:01 AM Richard Campbell wrote: > > On Tue, Mar 19, 2024 at 9:04 AM Bill Stewart via Cygwin > > wrote: > > > > > Can you please clarify the circumstances under which the RtlGetVersion > > > function "may not return the

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

2024-03-19 Thread Bill Stewart via Cygwin
On Tue, Mar 19, 2024 at 9:01 AM Richard Campbell wrote: On Tue, Mar 19, 2024 at 9:04 AM Bill Stewart via Cygwin > wrote: > > > Can you please clarify the circumstances under which the RtlGetVersion > > function "may not return the correct values"? > > "Originally, using RtlGetVersion instead of

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

2024-03-19 Thread Richard Campbell via Cygwin
On Tue, Mar 19, 2024 at 9:04 AM Bill Stewart via Cygwin wrote: > > Can you please clarify the circumstances under which the RtlGetVersion > function "may not return the correct values"? > "Originally, using RtlGetVersion instead of GetVersionEx was supposed to fix the fact that GetVersionInfo

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

2024-03-19 Thread Bill Stewart via Cygwin
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() > >

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

2024-03-19 Thread Christian Franke via Cygwin
Cedric Blancher via Cygwin wrote: How does cygwin uname -s work, i.e. how does it get the OS version, revision and build number ('10.0-19045')? I tried to replicate it via GetVersionEx(), but that is deprecated. AFAICS, MS does not offer an official way to retrieve the actual Windows version

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

2024-03-19 Thread Cedric Blancher via Cygwin
Good morning! How does cygwin uname -s work, i.e. how does it get the OS version, revision and build number ('10.0-19045')? I tried to replicate it via GetVersionEx(), but that is deprecated. Ced -- Cedric Blancher [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur -- Problem