mirror of https://github.com/BOINC/boinc.git
- 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:
parent
2aca840e83
commit
9254672696
|
@ -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
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue