There are two ways version checks are typically done. One is to get the actual version number, via the appropriate API function. That’s the correct way.I'm not understanding how the name of an OS would effect the coding of the OS. Isn't a name just a name?
Then there are folks who retrieve the product name and parse that string. That’s wrong. I’m not sure it’s very common anymore, since the consumer and business lines of Windows have merged. But it was super common in the Windows 9x days, which is the problem with having a 9 in the version number in the modern era.
This is a total guess, but I think maybe ME or the move of everyone to the NT family of Windows may have ended this practice. Once they put letters only in the product name, all of a sudden you can’t check for a number being greater or less than. Just a supposition on my part.
My Computer
System One
-
- OS
- Windows 11 Pro 24H2
- Computer type
- PC/Desktop
- Manufacturer/Model
- Intel NUC12WSHi7
- CPU
- 12th Gen Intel Core i7-1260P, 2100 MHz
- Motherboard
- NUC12WSBi7
- Memory
- 64 GB
- Graphics Card(s)
- Intel Iris Xe
- Sound Card
- built-in Realtek HD audio
- Monitor(s) Displays
- Dell U3219Q
- Screen Resolution
- 3840x2160 @ 60Hz
- Hard Drives
- Samsung SSD 990 PRO 1TB
- Keyboard
- CODE 104-Key Mechanical with Cherry MX Clears
- Antivirus
- Microsoft Defender