본문 바로가기
Study/API

윈도우 버젼 표

by 뿡뿡대마왕 2012. 12. 26.
반응형



OS의 버젼을 알아올때 major와 minor가 가리키는 값이 어떤 OS인지 확인할때~~




Operating system

Version number

dwMajorVersion

dwMinorVersion

Other

Windows 8

6.2

6

2

OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION

Windows Server 2012

6.2

6

2

OSVERSIONINFOEX.wProductType != VER_NT_WORKSTATION

Windows 7

6.1

6

1

OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION

Windows Server 2008 R2

6.1

6

1

OSVERSIONINFOEX.wProductType != VER_NT_WORKSTATION

Windows Server 2008

6.0

6

0

OSVERSIONINFOEX.wProductType != VER_NT_WORKSTATION

Windows Vista

6.0

6

0

OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION

Windows Server 2003 R2

5.2

5

2

GetSystemMetrics(SM_SERVERR2) != 0

Windows Home Server

5.2

5

2

OSVERSIONINFOEX.wSuiteMask & VER_SUITE_WH_SERVER

Windows Server 2003

5.2

5

2

GetSystemMetrics(SM_SERVERR2) == 0

Windows XP Professional x64 Edition

5.2

5

2

(OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION) && (SYSTEM_INFO.wProcessorArchitecture==PROCESSOR_ARCHITECTURE_AMD64)

Windows XP5.151Not applicable
Windows 20005.050Not applicable


반응형

댓글