Click here to Skip to main content
Licence 
First Posted 14 Jul 2003
Views 51,036
Bookmarked 10 times

GetVersionEx API for Windows Millenium Edition

By | 14 Jul 2003 | Article
Ever wondered why that GetVersion function reported your operating system was Windows 98, when infact it is indeed Windows ME?

Introduction

If you've ever tested the GetVersionEx API on many an operating system it usually works a treat, which is what you'd expect from a tried and tested API that works as far back as Windows 3.1! Until that is, you try it on Windows Millenium Edition which returns the correct value provided that the name of the calling application is not

  • setup.exe, or
  • launch.exe

It's hard to beleive that such anamolies are present in the API function without any mention on the MSDN forums or VC help. It was apparently added to ensure backward compatability for installation programs (which is where the setup.exe comes in).

Hope this has helped someone before they tear their hair out in stress wondering what went wrong with their coding!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Griffter UK

Software Developer (Senior)

United Kingdom United Kingdom

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 PinmemberNetDave8:55 4 Mar '09  
GeneralThank You PinmemberChrisTheTall4:09 9 Jun '04  
GeneralFYI: GetVersionEx and Windows 3.1 Pinmemberpjnaughter12:37 21 Jul '03  
GeneralInteresting info... PineditorNishant S23:03 14 Jul '03  
GeneralRe: Interesting info... PinmemberNGS 5496724:50 15 Jul '03  
GeneralRe: Interesting info... PineditorNishant S5:23 15 Jul '03  
GeneralRe: Interesting info... PinsussAnonymous7:22 15 Jul '03  
GeneralRe: Interesting info... PineditorNishant S15:12 15 Jul '03  
GeneralRe: Interesting info... PinmemberPaolo Messina9:59 15 Jul '03  
GeneralRe: Interesting info... PineditorNishant S15:16 15 Jul '03  
GeneralRe: Interesting info... PineditorRob Manderson13:08 15 Jul '03  
GeneralRe: Interesting info... PineditorNishant S15:14 15 Jul '03  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 15 Jul 2003
Article Copyright 2003 by Griffter UK
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid