Windows 버전 알아내기 - GetVersionEx
Posted 2010/01/20 17:25|
|
|
댓글 하나가 운영자에겐 커다란 힘이 됩니다!
http://msdn.microsoft.com/en-us/library/ms724833(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms724833(VS.85).aspx
Contains operating system version information. The information includes major and minor version numbers, a build number, a platform identifier, and information about product suites and the latest Service Pack installed on the system. This structure is used with the GetVersionEx and VerifyVersionInfo functions.
typedef struct _OSVERSIONINFOEX {
DWORD dwOSVersionInfoSize;
DWORD dwMajorVersion;
DWORD dwMinorVersion;
DWORD dwBuildNumber;
DWORD dwPlatformId;
TCHAR szCSDVersion[128];
WORD wServicePackMajor;
WORD wServicePackMinor;
WORD wSuiteMask;
BYTE wProductType;
BYTE wReserved;
} OSVERSIONINFOEX, *POSVERSIONINFOEX, *LPOSVERSIONINFOEX;
|
Operating system |
Version number |
dwMajorVersion |
dwMinorVersion |
|
Windows 7 |
6.1 |
6 |
1 |
|
Windows Server 2008 R2 |
6.1 |
6 |
1 |
|
Windows Server 2008 |
6.0 |
6 |
0 |
|
Windows Vista |
6.0 |
6 |
0 |
|
Windows Server 2003 R2 |
5.2 |
5 |
2 |
|
Windows Home Server |
5.2 |
5 |
2 |
|
Windows Server 2003 |
5.2 |
5 |
2 |
|
Windows XP Professional x64 Edition |
5.2 |
5 |
2 |
|
Windows XP |
5.1 |
5 |
1 |
|
Windows 2000 |
5.0 |
5 |
0 |
실제 사용예는 아래의 링크에서 확인하세요.
http://himskim.egloos.com/1951478
Windows Vista와 Windows 7의 Version checking.pdf |
위의 정보가 도움이 되셨나요? 그렇다면 댓글 하나만 남겨주세요.
댓글 하나가 운영자에겐 커다란 힘이 됩니다!
- Filed under : 프로그래밍/MFC & Win32
- Comment Trackback


Windows Vista와 Windows 7의 Version checking.pdf