Check if OS is Vista?

RuralTurtle
02-27-2007, 11:15 AM
Hi. Is there an easy way w/ VB6 to check to see if the user is running Vista?

Thanks.

PianoMan
02-27-2007, 12:05 PM
Hi. Is there an easy way w/ VB6 to check to see if the user is running Vista?

Thanks.

You can use GetVersionEx (http://msdn2.microsoft.com/en-us/library/ms724451.aspx) to determine the OS.

ElderKnight
02-27-2007, 02:23 PM
If your program doesn't work, it's Vista.

RuralTurtle
03-01-2007, 11:32 AM
Thanks for the replies. GetVersionEx seems to do it.

I guessed I lucked out, because only a couple subroutines of my app need to be re-coded for Vista.

Thanks again.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum