MFC get windows version System Control


Windows 7 6.1
Windows Server “Longhorn” 6.0 
Windows Vista 6.0 
Windows Server 2003 R2 5.2 
Windows Server 2003 5.2 
Windows XP 5.1 
Windows 2000 5.0
Windows Me 4.90
Windows 98 4.10
Windows NT 4.0 4.0 
Windows 95 4.0



BOOL IsWin7(void) 
OSVERSIONINFO ver; 
BOOL bRet = FALSE; 
ver.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); 
GetVersionEx(&ver); 
DWORD dwMajor = ver.dwMajorVersion; 
DWORD dwMinor = ver.dwMinorVersion; 
if ( dwMajor == 6 ) 
bRet = TRUE; 
return bRet; 
}

덧글

댓글 입력 영역


통계 위젯 (블랙)

034
134
410270