Author Topic: OS Info for Windows 8 and 10  (Read 44362 times)

TouEnMasm

  • Member
  • *****
  • Posts: 1804
    • EditMasm
Re: OS Info for Windows 8 and 10
« Reply #60 on: November 05, 2015, 07:13:40 PM »
I must be a guru with c++
http://masm32.com/board/index.php?topic=4763.msg51370#msg51370
Give the good answer for Windows 10 with getversionex.
There is asm in it,but he can be only c++

Answer given by the demo in the precedent post in Windows 10
Quote
Windows
Edition unknown Edition
Platform type: NT
Major version: 6
Minor version: 2
Build number: 9200
Service Pack info:  (Build 9200)

32-bit platform: false
64-bit platform: true
Appuyez sur une touche pour continuer...
Fa is a musical note to play with CL

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: OS Info for Windows 8 and 10
« Reply #61 on: November 06, 2015, 05:16:58 AM »
guru tweety


jj2007

  • Member
  • *****
  • Posts: 13005
  • Assembler is fun ;-)
    • MasmBasic
Re: OS Info for Windows 8 and 10
« Reply #62 on: November 06, 2015, 05:26:16 AM »
Give the good answer for Windows 10 with getversionex.

Major version: 6
Minor version: 2

Bad answer.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"ProductName"="Windows 10 Pro"
"CurrentVersion"="6.3"

TouEnMasm

  • Member
  • *****
  • Posts: 1804
    • EditMasm
Re: OS Info for Windows 8 and 10
« Reply #63 on: November 06, 2015, 05:57:54 PM »
must be the answer of masmbasic or another joke.

Fa is a musical note to play with CL

TWell

  • Member
  • ****
  • Posts: 743
Re: OS Info for Windows 8 and 10
« Reply #64 on: November 06, 2015, 07:47:51 PM »
Code: [Select]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"CurrentVersion"="6.3"
"ProductName"="Windows 10 Home"
OllyDbg 2
Code: [Select]
Dump - Process Environment Block
Address   Hex dump     Decoded data             Comments
7FFDE0A4   .  0A000000 DD 0000000A              ; OSMajorVersion = 10.
7FFDE0A8   .  00000000 DD 00000000              ; OSMinorVersion = 0
7FFDE0AC   .  0028     DW 2800                  ; OSBuildNumber = 10240.
7FFDE0AE   .  0000     DW 0                     ; OSCSDVersion = 0
7FFDE0B0   .  02000000 DD 00000002              ; OSPlatformId = 2

TouEnMasm

  • Member
  • *****
  • Posts: 1804
    • EditMasm
Re: OS Info for Windows 8 and 10
« Reply #65 on: November 06, 2015, 08:31:49 PM »
The "Dump - Process Environment Block" can be surely a usefull information
seem to be an OSVERSIONINFOEX STRUCT.
Is it right ?
Fa is a musical note to play with CL

jj2007

  • Member
  • *****
  • Posts: 13005
  • Assembler is fun ;-)
    • MasmBasic
Re: OS Info for Windows 8 and 10
« Reply #66 on: November 06, 2015, 08:35:35 PM »
must be the answer of masmbasic or another joke.

Sorry, 6.2 was YOUR answer. And yes, I agree it's another joke.

TouEnMasm

  • Member
  • *****
  • Posts: 1804
    • EditMasm
Re: OS Info for Windows 8 and 10
« Reply #67 on: November 07, 2015, 02:56:40 AM »

My answer is this one
http://masm32.com/board/index.php?topic=4763.msg51370#msg51370
get pair spectacles trifocals and read the messagebox

Fa is a musical note to play with CL

jj2007

  • Member
  • *****
  • Posts: 13005
  • Assembler is fun ;-)
    • MasmBasic
Re: OS Info for Windows 8 and 10
« Reply #68 on: November 07, 2015, 03:30:58 AM »
You mean version.zip? Doesn't work on Windows 7, the OS says it requires some strange msvcrt.dll.
Seriously, Yves, how can you write a "tell me my OS version" proggie that doesn't even run on all recent versions???

TWell

  • Member
  • ****
  • Posts: 743
Re: OS Info for Windows 8 and 10
« Reply #69 on: November 07, 2015, 04:49:21 AM »
It don't run in my Windows 10. It needs VCRUNTIME140D.dll ucrtbased.dll .....

Adamanteus

  • Member
  • **
  • Posts: 249
    • LLC "AMS"
Re: OS Info for Windows 8 and 10
« Reply #70 on: November 07, 2015, 08:39:23 AM »
 I think that's because you have craped variation of Longhorn ..., but with exceptions in threads ... and Metro interface and ... some other 'very useful things' ...

TouEnMasm

  • Member
  • *****
  • Posts: 1804
    • EditMasm
Re: OS Info for Windows 8 and 10
« Reply #71 on: November 07, 2015, 06:34:58 PM »
Quote
It don't run in my Windows 10. It needs VCRUNTIME140D.dll ucrtbased.dll

Those one are provided with the redistributable package of c++ 2015,not witn win 10

For JJ :
Quote
"tell me my OS version" proggie that doesn't even run on all recent versions???
update your knowledge of the Windows 10 system and of visual studio 2015,it is not to late.
here is the link for you
https://www.visualstudio.com/en-us/downloads/2015-redistributables-rc-vs.aspx
The signature of the visual studio 2015 is the need of *140*.dll

extract:
Quote
Visual C++ Runtime Files:

For your convenience, we have provided the following folders for use when distributing VC++ runtime files. Subject to the License Terms for the software, you may copy and distribute with your program any of the files within the folders listed below. You may not modify these files.

\VC\redist\arm\Microsoft.VC140.CRT\appcrt140.dll
\VC\redist\arm\Microsoft.VC140.CRT\concrt140.dll
\VC\redist\arm\Microsoft.VC140.CRT\desktopcrt140.dll
\VC\redist\arm\Microsoft.VC140.CRT\msvcp140.dll
\VC\redist\arm\Microsoft.VC140.CRT\vccorlib140.dll
\VC\redist\arm\Microsoft.VC140.CRT\vcruntime140.dll
\VC\redist\arm\Microsoft.VC140.CXXAMP\vcamp140.dll
\VC\redist\arm\Microsoft.VC140.OPENMP\vcomp140.dll
\VC\redist\x64\Microsoft.VC140.CRT\appcrt140.dll
\VC\redist\x64\Microsoft.VC140.CRT\concrt140.dll
\VC\redist\x64\Microsoft.VC140.CRT\desktopcrt140.dll
\VC\redist\x64\Microsoft.VC140.CRT\msvcp140.dll
\VC\redist\x64\Microsoft.VC140.CRT\vccorlib140.dll
\VC\redist\x64\Microsoft.VC140.CRT\vcruntime140.dll
\VC\redist\x64\Microsoft.VC140.CXXAMP\vcamp140.dll
\VC\redist\x64\Microsoft.VC140.MFC\mfc140u.dll
\VC\redist\x64\Microsoft.VC140.MFC\mfcm140u.dll
\VC\redist\x64\Microsoft.VC140.MFCLOC\mfc140chs.dll
\VC\redist\x64\Microsoft.VC140.MFCLOC\mfc140cht.dll
\VC\redist\x64\Microsoft.VC140.MFCLOC\mfc140deu.dll
\VC\redist\x64\Microsoft.VC140.MFCLOC\mfc140enu.dll
\VC\redist\x64\Microsoft.VC140.MFCLOC\mfc140esn.dll
\VC\redist\x64\Microsoft.VC140.MFCLOC\mfc140fra.dll
\VC\redist\x64\Microsoft.VC140.MFCLOC\mfc140ita.dll
\VC\redist\x64\Microsoft.VC140.MFCLOC\mfc140jpn.dll
\VC\redist\x64\Microsoft.VC140.MFCLOC\mfc140kor.dll
\VC\redist\x64\Microsoft.VC140.MFCLOC\mfc140rus.dll
\VC\redist\x64\Microsoft.VC140.OpenMP\vcomp140.dll
\VC\redist\x86\Microsoft.VC140.CRT\appcrt140.dll
\VC\redist\x86\Microsoft.VC140.CRT\concrt140.dll
\VC\redist\x86\Microsoft.VC140.CRT\desktopcrt140.dll
\VC\redist\x86\Microsoft.VC140.CRT\msvcp140.dll
\VC\redist\x86\Microsoft.VC140.CRT\vccorlib140.dll
\VC\redist\x86\Microsoft.VC140.CRT\vcruntime140.dll
\VC\redist\x86\Microsoft.VC140.CXXAMP\vcamp140.dll
\VC\redist\x86\Microsoft.VC140.MFC\mfc140u.dll
\VC\redist\x86\Microsoft.VC140.MFC\mfcm140u.dll
\VC\redist\x86\Microsoft.VC140.MFCLOC\mfc140chs.dll
\VC\redist\x86\Microsoft.VC140.MFCLOC\mfc140cht.dll
\VC\redist\x86\Microsoft.VC140.MFCLOC\mfc140deu.dll
\VC\redist\x86\Microsoft.VC140.MFCLOC\mfc140enu.dll
\VC\redist\x86\Microsoft.VC140.MFCLOC\mfc140esn.dll
\VC\redist\x86\Microsoft.VC140.MFCLOC\mfc140fra.dll
\VC\redist\x86\Microsoft.VC140.MFCLOC\mfc140ita.dll
\VC\redist\x86\Microsoft.VC140.MFCLOC\mfc140jpn.dll
\VC\redist\x86\Microsoft.VC140.MFCLOC\mfc140kor.dll
\VC\redist\x86\Microsoft.VC140.MFCLOC\mfc140rus.dll
\VC\redist\x86\Microsoft.VC140.OPENMP\vcomp140.dll


Fa is a musical note to play with CL

TWell

  • Member
  • ****
  • Posts: 743
Re: OS Info for Windows 8 and 10
« Reply #72 on: November 07, 2015, 07:19:05 PM »
VCRUNTIME140D.dll ucrtbased.dll are not in that list.
You posted debug version :(

jj2007

  • Member
  • *****
  • Posts: 13005
  • Assembler is fun ;-)
    • MasmBasic
Re: OS Info for Windows 8 and 10
« Reply #73 on: November 07, 2015, 07:42:25 PM »

For JJ :
Quote
Seriously, Yves, how can you write a "tell me my OS version" proggie that doesn't even run on all recent versions???
update your knowledge of the Windows 10 system and of visual studio 2015,it is not to late.
here is the link for you
https://www.visualstudio.com/en-us/downloads/2015-redistributables-rc-vs.aspx

Yves,

Does Microsoft pay you for this blunt attempt to force Visual Crap down our throats? Plus your "ready to use SDK", of course?

In terms of sheer size, VS 2015 = 800 x Masm32, 7700 x MasmBasic...

Visual Studio Community 2015 has a 3.7 GB ISO, which will take about 2 hours on a 4 mbps connection.