furrbear: (Windows)
[personal profile] furrbear
Found this today on MSDN. Can you spot what caused the WTF moment?
      if ( osvi.dwMajorVersion == 6 )
      {
         if( osvi.dwMinorVersion == 0 )
         {
            if( osvi.wProductType == VER_NT_WORKSTATION )
                StringCchCat(pszOS, BUFSIZE, TEXT("Windows Vista "));
            else StringCchCat(pszOS, BUFSIZE, TEXT("Windows Server 2008 " ));
         }

         if ( osvi.dwMinorVersion == 1 )
         {
            if( osvi.wProductType == VER_NT_WORKSTATION )
                StringCchCat(pszOS, BUFSIZE, TEXT("Windows 7 "));
            else StringCchCat(pszOS, BUFSIZE, TEXT("Windows Server 2008 R2 " ));
         }
(screened comment)

Date: 2009-09-24 01:54 am (UTC)
From: [identity profile] furrbear.livejournal.com
Well OK. But WHY?

Date: 2009-09-24 04:49 am (UTC)
From: [identity profile] s2dbaker.livejournal.com
My Inner Geek ( which is pretty much all of me ) is telling me that the Windows NT version 6.0 is Vista and 6.1 is Windows 7

Are you surprised that Windows 7 is just a rebranding of Vista?

Date: 2009-09-24 04:16 pm (UTC)
From: [identity profile] furrbear.livejournal.com
Not really. XP was a rebranding of 2000. It's just one would think they'd bump MajorVersion. Next up, Windows 8 which will be version 7.

I hope this doesn't start to look like the Solaris vs SunOS comfusion.

Profile

furrbear: (Default)
furrbear

May 2013

S M T W T F S
   12 34
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 31st, 2025 04:06 pm
Powered by Dreamwidth Studios