> than trusting random fools in newsgroups
L0L, you don't seem like one
Finally, I want to ask,
please look at this:
if ( osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 1 )
printf ("Gee, it must be Vista Service Pack 1!");
Can one determine Windows Vista service pack releases the same way as
calculated with Windows XP?
so, like
if ( osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 1 )
{
printf ("It is Microsoft Windows Vista All Versions");
{
if ( osvi.wServicePackMajor == 0 )
printf ("with no Service Pack");
else if ( osvi.wServicePackMajor == 1 )
printf ("with Service Pack 1");
else if ( osvi.wServicePackMajor == 2 )
printf ("with Service Pack 2");
else if ( osvi.wServicePackMajor == 3 )
printf ("with Service Pack 3");
else if ( osvi.wServicePackMajor == 4 )
printf ("with Service Pack 4");
else printf ("unrecognised Service Pack");
}
}
It is slightly exaggerated, but will it work? I noted you have this:
if ( osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 0 )
{
if( osvi.wProductType == VER_NT_WORKSTATION )
printf ("It is Windows Vista");
else printf ("It is Windows Server 2008" );
}
Is above just an alternative way to get to the same information?