Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Windows 11 Version Detection" by Shao Voon Wong

59 views
Skip to first unread message

Lynn McGuire

unread,
Jul 6, 2022, 3:10:43 PM7/6/22
to
"Windows 11 Version Detection" by Shao Voon Wong

https://www.codeproject.com/Articles/5336372/Windows-11-Version-Detection

Complicated as usual.

Lynn

Ralf Fassel

unread,
Jul 7, 2022, 5:28:09 AM7/7/22
to
* Lynn McGuire <lynnmc...@gmail.com>
| "Windows 11 Version Detection" by Shao Voon Wong
>
| https://www.codeproject.com/Articles/5336372/Windows-11-Version-Detection
>
| Complicated as usual.

Interestingly, the author points out a common error when checking the
minor version number in XP, just to repeat that same error in the
Windows-11 check later (only checking for Buildnumber, but not for Major
and Minor :-)

R'

Kenny McCormack

unread,
Jul 7, 2022, 6:14:01 AM7/7/22
to
In article <ta4mn1$41kq$1...@dont-email.me>,
Do you ever check which newsgroup you are posting to when you post?

--
So to cure the problem of arrogant incompetent rich people we should turn
the government over to an arrogant incompetent trust fund billionaire
who knows nothing about government and who has never held a job in his
entire spoiled life?

Bonita Montero

unread,
Jul 7, 2022, 8:09:37 AM7/7/22
to
Can anyone tell me why it should be important to know which Windows
version some code runs on ? The system either has the required APIs
or not. If you check for their existence that should be sufficient.

Kenny McCormack

unread,
Jul 7, 2022, 10:17:18 AM7/7/22
to
In article <ta6idg$cclr$1...@dont-email.me>,
Sometimes (a lot of the time!) APIs change semantics from version to
version. So, you have to know which version you are running on to know how
the API works.

(Yes, I checked the "Newsgroups:" line. I posted anyway...)

--
A racist, a Nazi, and a Klansman walk into a bar...

Bartender says, "What will it be, Mr. Trump?"

Bonita Montero

unread,
Jul 7, 2022, 10:51:15 AM7/7/22
to
Am 07.07.2022 um 16:17 schrieb Kenny McCormack:
> In article <ta6idg$cclr$1...@dont-email.me>,
> Bonita Montero <Bonita....@gmail.com> wrote:
>> Am 06.07.2022 um 21:10 schrieb Lynn McGuire:
>>> "Windows 11 Version Detection" by Shao Voon Wong
>>>
>>> https://www.codeproject.com/Articles/5336372/Windows-11-Version-Detection
>>>
>>> Complicated as usual.
>>
>> Can anyone tell me why it should be important to know which Windows
>> version some code runs on ? The system either has the required APIs
>> or not. If you check for their existence that should be sufficient.
>
> Sometimes (a lot of the time!) APIs change semantics from version to
> version. So, you have to know which version you are running on to
> know how the API works.

That doesn't happen documented with Windows.
If Windows changes its API there's a second or third API
like VirtualQueryEx().

Lynn McGuire

unread,
Jul 7, 2022, 2:34:25 PM7/7/22
to
Each one of the Windows releases has undocumented functions in the API.
Many Windows programmers have used them over the years.
https://www.amazon.com/Windows-XP-Secrets-Curt-Simmons/dp/0764548522/

I have released a couple of secrets on my own website with hundreds of
downloads per day.
https://www.winsim.com/diskid32/diskid32.html

Lynn

red floyd

unread,
Jul 7, 2022, 5:16:32 PM7/7/22
to
And this is relevant to c.l.c++ how? How are undocumented OS (and OS
version specific) APIs (defined in C) relevant to a discussion of the
C++ language proper?


Chris M. Thomasson

unread,
Jul 7, 2022, 5:27:11 PM7/7/22
to
On 7/7/2022 11:34 AM, Lynn McGuire wrote:
Remember that magazine dedicated to kernel programming in windows? I
cannot remember the damn name right now. Damn it! Then there is
sysinternals.

Lynn McGuire

unread,
Jul 7, 2022, 6:06:20 PM7/7/22
to
Sysinternals was the guys that I could not remember the name of !

The only magazine with kernel programming that I can think of was Dr.
Dobbs Journal.
https://en.wikipedia.org/wiki/Dr._Dobb%27s_Journal

The C User's Journal occasionally had operating system programming in
it. So did the MSDN Magazine.
https://en.wikipedia.org/wiki/C/C%2B%2B_Users_Journal
and

https://docs.microsoft.com/en-us/archive/msdn-magazine/msdn-magazine-issues

Lynn


Mike Terry

unread,
Jul 7, 2022, 8:12:39 PM7/7/22
to
Sysinternals produced all those must-have utilities like ProcessMon, which are based on kernal-level
programmming, but I don't recall them producing a magazine specifically for kernal programming.

The one I remember is "The NT Insider" which was free (maybe with restrictions on what your job
was?). It was produced by OSR-Online (or what is now OSR-Online) and at some point they changed to
emailing PDF files. They have an archive with old issues https://www.osronline.com/

Regards,
Mike.

Chris M. Thomasson

unread,
Jul 7, 2022, 8:53:11 PM7/7/22
to
"The NT Insider" is IT: Thank you, Mike! It was damn near on the tip of
my tongue. Thanks again. :^) Iirc, I still have some of the print
magazines in storage.

Bonita Montero

unread,
Jul 7, 2022, 10:11:08 PM7/7/22
to
Am 07.07.2022 um 20:34 schrieb Lynn McGuire:

> Each one of the Windows releases has undocumented functions in the API.
> Many Windows programmers have used them over the years.
>    https://www.amazon.com/Windows-XP-Secrets-Curt-Simmons/dp/0764548522/

You dont need to know the Windows version to use that.

Hergen Lehmann

unread,
Jul 8, 2022, 5:00:19 AM7/8/22
to
Am 07.07.22 um 14:10 schrieb Bonita Montero:

> Can anyone tell me why it should be important to know which Windows
> version some code runs on ? The system either has the required APIs
> or not. If you check for their existence that should be sufficient.

One reason would be to write it into the application's log file. The
exact OS version in use by the customer is sometimes an important
information when tracing down bugs and having basic system stats like
these right at hand avoids burdensome questioning.

Also, there might be the need to implement workarounds for known API
bugs in a certain OS version. Had this a few times in the past...

Cholo Lennon

unread,
Jul 8, 2022, 12:41:07 PM7/8/22
to
So, this newsgroup is almost dead without traffic, but you are worried
because there are some discussions about Windows programming in C++ :-O



olcott

unread,
Jul 8, 2022, 4:48:57 PM7/8/22
to
https://stackoverflow.com/questions/29944745/get-osversion-in-windows-using-c


--
Copyright 2022 Pete Olcott

"Talent hits a target no one else can hit;
Genius hits a target no one else can see."
Arthur Schopenhauer

Lynn McGuire

unread,
Jul 12, 2022, 3:39:36 PM7/12/22
to
On 7/8/2022 3:48 PM, olcott wrote:
> On 7/6/2022 2:10 PM, Lynn McGuire wrote:
>> "Windows 11 Version Detection" by Shao Voon Wong
>>
>> https://www.codeproject.com/Articles/5336372/Windows-11-Version-Detection
>>
>> Complicated as usual.
>>
>> Lynn
>>
>
> https://stackoverflow.com/questions/29944745/get-osversion-in-windows-using-c

Does not cover Windows 11.

Lynn



olcott

unread,
Jul 12, 2022, 10:21:00 PM7/12/22
to
The simplest way is to get the version of Kernel32.dll and if Major
Version is 10 and Build Version is >= 22000 then you have Windows 11.
There is nothing "hackish" in this approach.

https://stackoverflow.com/questions/69373447/is-there-an-official-way-to-detect-windows-11

Chris M. Thomasson

unread,
Jul 13, 2022, 1:07:13 AM7/13/22
to
On 7/12/2022 7:20 PM, olcott wrote:
> On 7/12/2022 2:39 PM, Lynn McGuire wrote:
>> On 7/8/2022 3:48 PM, olcott wrote:
>>> On 7/6/2022 2:10 PM, Lynn McGuire wrote:
>>>> "Windows 11 Version Detection" by Shao Voon Wong
>>>>
>>>> https://www.codeproject.com/Articles/5336372/Windows-11-Version-Detection
>>>>
>>>>
>>>> Complicated as usual.
>>>>
>>>> Lynn
>>>>
>>>
>>> https://stackoverflow.com/questions/29944745/get-osversion-in-windows-using-c
>>>
>>
>> Does not cover Windows 11.
>>
>> Lynn
>>
>
> The simplest way is to get the version of Kernel32.dll and if Major
> Version is 10 and Build Version is >= 22000 then you have Windows 11.
> There is nothing "hackish" in this approach.
>
> https://stackoverflow.com/questions/69373447/is-there-an-official-way-to-detect-windows-11
>
>
>

Check this out... ;^D

https://github.com/ZoloZiak/WinNT4

look like NT4 to me... ;^)
0 new messages