Re: GetVersionEx with Vista
"Michael Gledhill" <mike @ iSomewhere . com> wrote in message
news:0BDB7145-7171-4986-B0EC-728CAF352CB8@microsoft.com...
After discovering this bu-, err, issue earlier today, and before posting
my article, I did a few searches around the web for anything relating to
this bu-, err, issue, and didn't find anything.
The thread I mentioned did point to http://forums.microsoft.com, where
someone had posted a link to an article making sure your apps are Vista
compatible.
It's undocumented, unnecessary and uncredibly ridiculous.
(I might've made that last phrase up.)
I'm not convinced that Vista SHOULD ever return an incorrect
version number as essential as this, manifest or not. Or, at the
very least, Microsoft's own MSDN pages should make a note of this
in the GetVersionEx() description, as you have changed the way
it works.
Hmm, I wonder if I can rename my .exe to give it even *less*
access rights, and if Vista will then report that it's running under
Windows 3.1 ? Now there's a challenge.
Yeah, I think they put a lot of undue burdan on us to make sure our apps
work with the slew of changes they did in Vista, then relied on typical
murky Microsoft doc to describe what we have to do to change it, then the
people who really have good info realize the doc won't help anyone, and post
how to really do it on their blogs. Which we have to find, and is haphazard
at best. And sometimes the best possible info says there really is no good
solution. Such is the state of things produced by Microsoft.
-- David