???????????ж??????????
???????????? ???????[ 2013/9/29 15:20:25 ] ????????
#include <stdio.h>
#include <windows.h>
//OSVERSIONINFO???????壺
//
//typedef OSVERSIONINFOW OSVERSIONINFO;
//typedef struct _OSVERSIONINFOW {
// DWORD dwOSVersionInfoSize; //????????????????С
// DWORD dwMajorVersion; //???????????汾?? 5????2000????汾
// DWORD dwMinorVersion; //??????????汾?? 0????win2000. 1????winxp
// DWORD dwBuildNumber; //?????????????
// DWORD dwPlatformId; //??????ID??
// WCHAR szCSDVersion[ 128 ]; // Maintenance string for PSS usage ?????????????Щ???????
//} OSVERSIONINFOW?? *POSVERSIONINFOW?? *LPOSVERSIONINFOW?? RTL_OSVERSIONINFOW?? *PRTL_OSVERSIONINFOW;
int GetOSVer()
{
OSVERSIONINFO osver;
osver.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&osver);
if(osver.dwPlatformId == 2)
{
if(osver.dwMajorVersion == 5 && osver.dwMinorVersion == 1)
{
printf("xp
");
return(2);
}
if(osver.dwMajorVersion == 5 && osver.dwMinorVersion == 2)
{
printf("windows 2003
");
return(3);
}
if(osver.dwMajorVersion == 6 && osver.dwMinorVersion == 0)
{
printf("vista and 2008
");
return(4);
}
if(osver.dwMajorVersion == 6 && osver.dwMinorVersion == 1)
{
printf("2008 R2 and Windows 7
");
return(5);
}
}
return 0;
}
int main()
{
GetOSVer();
system("pause");
}
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
?????????????????HBase????????ú???????????????Rails????????????????Linux??????????????????????????????豸??????ò????????????????????????????Linux?????????????14??Linux?????7??????????????????? - ?洢?豸????????????????й???????Щ????????????????????Fuchsia??????б????iOS??????????????????? ???????????????????Linux????????AES??????????????α??????Linux??????????裺?????????????????????????????????????TmaxOS??????????iOS??Windows??????/WP???????????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????