Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Invest in physics -- own a piece of Dirac!


devel / comp.lang.xharbour / OS() function doesn't return windows version correctly

SubjectAuthor
* OS() function doesn't return windows version correctlyreina...@gmail.com
+- Re: OS() function doesn't return windows version correctlydlzc
`* Re: OS() function doesn't return windows version correctlytimepro timesheet
 `* Re: OS() function doesn't return windows version correctlynikos.ch...@gmail.com
  `- Re: OS() function doesn't return windows version correctlyreina...@gmail.com

1
OS() function doesn't return windows version correctly

<86f4a923-793c-45cd-b386-b9c77f2b8bb8n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17317&group=comp.lang.xharbour#17317

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:3186:b0:745:a35f:ad71 with SMTP id bi6-20020a05620a318600b00745a35fad71mr7958378qkb.13.1680323043327;
Fri, 31 Mar 2023 21:24:03 -0700 (PDT)
X-Received: by 2002:a05:6820:355:b0:53e:944:8896 with SMTP id
m21-20020a056820035500b0053e09448896mr8934611ooe.0.1680323043075; Fri, 31 Mar
2023 21:24:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Fri, 31 Mar 2023 21:24:02 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2804:17bc:11a:9100:64b5:3eb3:9ae2:bca;
posting-account=yZJwlQoAAADzKZZdom395T93hGRZPX0-
NNTP-Posting-Host: 2804:17bc:11a:9100:64b5:3eb3:9ae2:bca
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <86f4a923-793c-45cd-b386-b9c77f2b8bb8n@googlegroups.com>
Subject: OS() function doesn't return windows version correctly
From: reinaldohf@gmail.com (reina...@gmail.com)
Injection-Date: Sat, 01 Apr 2023 04:24:03 +0000
Content-Type: text/plain; charset="UTF-8"
 by: reina...@gmail.com - Sat, 1 Apr 2023 04:24 UTC

/* =====================================================*/
procedure main()

// on windows 10 it return "windows 8 6.2.9200"
? os()

return
/* =====================================================*/

Thanks,

Reynaldo Henrique

Re: OS() function doesn't return windows version correctly

<1c8fa4ac-8651-4f5e-b4d2-c879bd41832fn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17318&group=comp.lang.xharbour#17318

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:622a:199a:b0:3db:c138:ae87 with SMTP id u26-20020a05622a199a00b003dbc138ae87mr14137677qtc.6.1680540526628;
Mon, 03 Apr 2023 09:48:46 -0700 (PDT)
X-Received: by 2002:a05:6870:57:b0:17e:e396:cce0 with SMTP id
23-20020a056870005700b0017ee396cce0mr12130030oaz.9.1680540526333; Mon, 03 Apr
2023 09:48:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.neodome.net!news.uzoreto.com!peer03.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Mon, 3 Apr 2023 09:48:46 -0700 (PDT)
In-Reply-To: <86f4a923-793c-45cd-b386-b9c77f2b8bb8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <86f4a923-793c-45cd-b386-b9c77f2b8bb8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1c8fa4ac-8651-4f5e-b4d2-c879bd41832fn@googlegroups.com>
Subject: Re: OS() function doesn't return windows version correctly
From: dlzc1@cox.net (dlzc)
Injection-Date: Mon, 03 Apr 2023 16:48:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
X-Received-Bytes: 2074
 by: dlzc - Mon, 3 Apr 2023 16:48 UTC

On Friday, March 31, 2023 at 9:24:04 PM UTC-7, reina...@gmail.com wrote:
> /* =====================================================*/
> procedure main()
>
> // on windows 10 it return "windows 8 6.2.9200"
> ? os()
>
> return
> /* =====================================================*/
Because Micro$haft did it on purpose:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/a084abc6-60c7-476e-92c6-5930856ca70d/win32-getversionex-returns-wrong-informatiion?forum=vcgeneral
Much like (way back) they lied to Netware drivers so they'd keep running.
David A. Smith

Re: OS() function doesn't return windows version correctly

<090601da-6104-47d8-b325-b609922bc14fn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17320&group=comp.lang.xharbour#17320

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:4407:b0:748:60ff:dff0 with SMTP id v7-20020a05620a440700b0074860ffdff0mr651199qkp.8.1680590143070;
Mon, 03 Apr 2023 23:35:43 -0700 (PDT)
X-Received: by 2002:a05:6871:4393:b0:17f:8f37:aaa8 with SMTP id
lv19-20020a056871439300b0017f8f37aaa8mr9147263oab.4.1680590142840; Mon, 03
Apr 2023 23:35:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.neodome.net!news.uzoreto.com!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Mon, 3 Apr 2023 23:35:42 -0700 (PDT)
In-Reply-To: <86f4a923-793c-45cd-b386-b9c77f2b8bb8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2405:201:3d:94f:3ced:a645:7b31:d061;
posting-account=jZAeNwoAAABYWjMRM-FfqKkHfC3Iph0l
NNTP-Posting-Host: 2405:201:3d:94f:3ced:a645:7b31:d061
References: <86f4a923-793c-45cd-b386-b9c77f2b8bb8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <090601da-6104-47d8-b325-b609922bc14fn@googlegroups.com>
Subject: Re: OS() function doesn't return windows version correctly
From: timecosting@gmail.com (timepro timesheet)
Injection-Date: Tue, 04 Apr 2023 06:35:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
X-Received-Bytes: 1977
 by: timepro timesheet - Tue, 4 Apr 2023 06:35 UTC

On Saturday, April 1, 2023 at 9:54:04 AM UTC+5:30, reina...@gmail.com wrote:
> /* =====================================================*/
> procedure main()
>
> // on windows 10 it return "windows 8 6.2.9200"
> ? os()
>
> return
> /* =====================================================*/
>
> Thanks,
>
> Reynaldo Henrique
if it returns 8 6.2.9200 ONLY for all win10 versions?
then would this work?
if mywinos='8 6.1...'
mywinos='10'
end

Re: OS() function doesn't return windows version correctly

<5238ec1e-c551-456e-b792-717dc44c97ean@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17322&group=comp.lang.xharbour#17322

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ac8:58cb:0:b0:3e6:6502:16b2 with SMTP id u11-20020ac858cb000000b003e6650216b2mr2536833qta.12.1680780159525;
Thu, 06 Apr 2023 04:22:39 -0700 (PDT)
X-Received: by 2002:a4a:e202:0:b0:53e:800e:d6c1 with SMTP id
b2-20020a4ae202000000b0053e800ed6c1mr3468639oot.0.1680780159167; Thu, 06 Apr
2023 04:22:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 6 Apr 2023 04:22:38 -0700 (PDT)
In-Reply-To: <090601da-6104-47d8-b325-b609922bc14fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=46.199.50.94; posting-account=MkYhwwoAAACC807gT9xMuAV3DyNzz3lR
NNTP-Posting-Host: 46.199.50.94
References: <86f4a923-793c-45cd-b386-b9c77f2b8bb8n@googlegroups.com> <090601da-6104-47d8-b325-b609922bc14fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5238ec1e-c551-456e-b792-717dc44c97ean@googlegroups.com>
Subject: Re: OS() function doesn't return windows version correctly
From: nikos.christophi@gmail.com (nikos.ch...@gmail.com)
Injection-Date: Thu, 06 Apr 2023 11:22:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2327
 by: nikos.ch...@gmail.co - Thu, 6 Apr 2023 11:22 UTC

On Tuesday, April 4, 2023 at 9:35:43 AM UTC+3, timepro timesheet wrote:
> On Saturday, April 1, 2023 at 9:54:04 AM UTC+5:30, reina...@gmail..com wrote:
> > /* =====================================================*/
> > procedure main()
> >
> > // on windows 10 it return "windows 8 6.2.9200"
> > ? os()
> >
> > return
> > /* =====================================================*/
> >
> > Thanks,
> >
> > Reynaldo Henrique
> if it returns 8 6.2.9200 ONLY for all win10 versions?
> then would this work?
> if mywinos='8 6.1...'
> mywinos='10'
> end
Hi Reynaldo

You have to include a resource file with the correct manifest file of OS() to give the correct version
Look the harbour.rc file in hmk2 source folder for guideance

Nikos

Re: OS() function doesn't return windows version correctly

<1a3f59b5-6a32-4364-838d-a47e886fd5cen@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17327&group=comp.lang.xharbour#17327

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ad4:57c1:0:b0:5e6:594d:fbb7 with SMTP id y1-20020ad457c1000000b005e6594dfbb7mr63026qvx.4.1680810131916;
Thu, 06 Apr 2023 12:42:11 -0700 (PDT)
X-Received: by 2002:a9d:7e96:0:b0:69f:5701:de09 with SMTP id
m22-20020a9d7e96000000b0069f5701de09mr3426312otp.6.1680810131606; Thu, 06 Apr
2023 12:42:11 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 6 Apr 2023 12:42:11 -0700 (PDT)
In-Reply-To: <5238ec1e-c551-456e-b792-717dc44c97ean@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2804:17bc:17d:c100:6bdb:6261:eb5c:cba5;
posting-account=yZJwlQoAAADzKZZdom395T93hGRZPX0-
NNTP-Posting-Host: 2804:17bc:17d:c100:6bdb:6261:eb5c:cba5
References: <86f4a923-793c-45cd-b386-b9c77f2b8bb8n@googlegroups.com>
<090601da-6104-47d8-b325-b609922bc14fn@googlegroups.com> <5238ec1e-c551-456e-b792-717dc44c97ean@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1a3f59b5-6a32-4364-838d-a47e886fd5cen@googlegroups.com>
Subject: Re: OS() function doesn't return windows version correctly
From: reinaldohf@gmail.com (reina...@gmail.com)
Injection-Date: Thu, 06 Apr 2023 19:42:11 +0000
Content-Type: text/plain; charset="UTF-8"
 by: reina...@gmail.com - Thu, 6 Apr 2023 19:42 UTC

> Hi Reynaldo
>
> You have to include a resource file with the correct manifest file of OS() to give the correct version
> Look the harbour.rc file in hmk2 source folder for guideance
>
> Nikos

Ok, thanks,

Reynaldo Henrique

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor