1. Russell Jaynes
  2. PowerBuilder
  3. Thursday, 29 March 2018 16:02 PM UTC

OSMajorRevision is returning a 6 on Windows 10?  I was expecting a 7

 

Anyone else having this problem.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 29 March 2018 16:17 PM UTC
  2. PowerBuilder
  3. # 1

Hi Russell;

  In PB 2017R2 build 1769 - the GetEnvironment ( ) method and its resulting object structure is returning my App's the value 10 for the O/S under W10 Fall Creator Edition for the "OSMajorRevision" property.

HTH

Regards ... Chris

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 29 March 2018 16:19 PM UTC
  2. PowerBuilder
  3. # 2

This was listed as one of the bugs fixed in the update posted earlier this week. I'm not sure if it returns a 10 or 7.

This is all due to a change Microsoft made in Windows 8 to the API function to always return 6. They have a new version function that requires a manifest that states the program is compatible with the version. SO if the program is manifested compatible with Windows 8, it will always return 8 even if running on 10.

I have an example that uses a different function to get the version number so doesn't have that limitation.

http://www.topwizprogramming.com/freecode_osversion.html

 

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 29 March 2018 17:42 PM UTC
Russ ... Roland's approach is much more accurate! 

  1. Helpful
  1. Russell Jaynes
  2. Friday, 30 March 2018 12:39 PM UTC
Thanks for the update on this....I will look at your example, need to track these bug fixes more timely myself :)



 

  1. Helpful
  1. Russell Jaynes
  2. Friday, 30 March 2018 14:15 PM UTC
Roland, you are my new hero.  You have some good stuff on your examples.

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.