News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Windows version

Started by Grincheux, January 23, 2016, 11:12:01 AM

Previous topic - Next topic

Grincheux

I have Windows 10 Pro.
When I call GetVersionEx it returns 6.2
I had the idea to add a manifest, it was hard!
Quote<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
      <application>
        <!--This Id value indicates the application supports Windows Vista functionality -->
          <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
        <!--This Id value indicates the application supports Windows 7 functionality-->
          <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
        <!--This Id value indicates the application supports Windows 8 functionality-->
          <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
        <!--This Id value indicates the application supports Windows 8.1 functionality-->
          <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
      <!-- Windows 10 -->
         <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
      </application>
  </compatibility>
</assembly>

I had to update Microsft Redistribuable... too
And now I get the correct version number : 10.0 not 6.2 or 6.3

Quote<!-- Windows 10 -->
         <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>

This line is magic!

Grincheux

If your app does not because "The config..."

do this

QuoteC:\Users\Grincheux>sxstrace Trace -logfile:myapp
Suivi démarré. Le suivi sera enregistré dans le fichier myapp.
Appuyez sur Entrée pour arrêter le suivi...


C:\Users\Grincheux>sxstrace Parse -logfile:myapp -outfile:kkkkkk.txt
Analyse du fichier journal sysinfo...
Analyse terminée ! La sortie est enregistrée dans le fichier kkkkkk.txt.

C:\Users\Grincheux>

Now edit the file : kkkkkk.txt

If there is no error, the file is empty.

Good night

TouEnMasm


That's new for Microsoft Windows 10 Version: 10.0.10586
before the 10586 build version it was not working.
https://msdn.microsoft.com/fr-fr/library/windows/desktop/dn481241(v=vs.85).aspx



Fa is a musical note to play with CL

Adamanteus

 Works fine :-) Thanks Grincheux !

guga

Is this will work on WinXp or 2000 too ?
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

Grincheux