- client: Update the Windows version detection code to account for

Windows 7 and Windows Server 2008 "R2".
        
    client/
        hostinfo_win.C

svn path=/trunk/boinc/; revision=15873
This commit is contained in:
Rom Walton 2008-08-18 18:47:07 +00:00
parent 2aca840e83
commit 9254672696
2 changed files with 16 additions and 0 deletions

View File

@ -6766,3 +6766,9 @@ Bruce 18 Aug 2008
inc/
host.inc
Rom 18 Aug 2008
- client: Update the Windows version detection code to account for
Windows 7 and Windows Server 2008 "R2".
client/
hostinfo_win.C

View File

@ -267,6 +267,16 @@ int get_os_information(
{
case VER_PLATFORM_WIN32_NT:
if ( osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 1 )
{
if( osvi.wProductType == VER_NT_WORKSTATION ) {
strcat(os_name, "Windows 7");
} else {
strcat(os_name, "Windows Server 2008 \"R2\"");
}
pGPI( 6, 1, 0, 0, &dwType);
}
if ( osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 0 )
{
if( osvi.wProductType == VER_NT_WORKSTATION ) {