[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  caveat on detecting major/minor OS version without an application manifest
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

caveat on detecting major/minor OS version without an application manifest

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page


Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Thu 09 Nov 2017 06:19 PM (UTC)

Amended on Thu 09 Nov 2017 06:56 PM (UTC) by Fiendish

Message
https://msdn.microsoft.com/en-us/library/windows/desktop/dn481241(v=vs.85).aspx

says:
Quote:
In Windows 8.1 and Windows 10, the GetVersion and GetVersionEx functions have been deprecated. In Windows 10, the VerifyVersionInfo function has also been deprecated. While you can still call the deprecated functions, if your application does not specifically target Windows 8.1 or Windows 10, you will get Windows 8 version (6.2.0.0).


So until an application manifest gets added, it looks like Windows 8.1 and 10 will misreport their versions in GetInfo(265) and GetInfo(266)

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Fri 10 Nov 2017 08:35 AM (UTC)
Message
https://github.com/nickgammon/mushclient/pull/39/commits/53bbda9e39b69647e45f53418e1fa77261581f03

I hope this is correct. I've never embedded a manifest before.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Fri 10 Nov 2017 10:42 AM (UTC)
Message
I seem to recall doing that before, which had side-effects. See: http://www.gammon.com.au/forum/?id=4782

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #3 on Fri 10 Nov 2017 08:48 PM (UTC)

Amended on Fri 10 Nov 2017 08:52 PM (UTC) by Fiendish

Message
Yeah but then you made code changes to address some visual glitches. I don't know if they fully resolved those issues or not. I think it would be fine to remove the bottom dependency section in the manifest. The important part of the manifest is the compatibility block, which is what gets GetVersion to stop lying about the OS, and from testing it seems to need to be embedded in the executable and doesn't work just as its own file.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #4 on Fri 10 Nov 2017 10:04 PM (UTC)
Message
I've amended the proposed manifest to delete that section.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


400 views.

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]