GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


OS Version by DELTRON
1
 
        // --MajMin--
        // 0x 0333    Windows NT 3.51
        // 0x 0400    Windows 95 or Windows NT 4.0
        // 0x 040A    Windows 98
        // 0x 045A    Windows ME
        // 0x 0500    Windows 2000
        // 0x 0501    Windows XP
        // 0x 0502    Windows Server 2003 family

        OSVERSIONINFO osvi;
        osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
        GetVersionEx(&osvi); 
        GLP_OSMAJMIN = (((osvi.dwMajorVersion<<8)&0xff00)|(osvi.dwMinorVersion&0xff))&0xffff;