{"id":1621,"date":"2015-12-29T11:44:09","date_gmt":"2015-12-29T03:44:09","guid":{"rendered":"http:\/\/myblog.emhct.net.cn\/?p=1621"},"modified":"2015-12-29T11:44:09","modified_gmt":"2015-12-29T03:44:09","slug":"%e3%80%90win8-x-vs-2013%e3%80%91windows-8-1%e4%b9%8b%e5%90%8e%e5%8f%af%e8%83%bd%e5%87%ba%e7%8e%b0%e7%9a%84api%e5%b7%ae%e5%bc%82","status":"publish","type":"post","link":"http:\/\/myblog.emhct.net.cn\/index.php\/archives\/1621","title":{"rendered":"\u3010win8.x &#038; vs 2013\u3011windows 8.1\u4e4b\u540e\u53ef\u80fd\u51fa\u73b0\u7684api\u5dee\u5f02"},"content":{"rendered":"<p>\u4eca\u5929\u628a\u5de5\u7a0b\u5168\u90e8\u8f6c\u6362\u6210\u4e86vs 2013\uff0c\u4e3b\u8981\u662f\u901a\u8fc7vs2013\u4e0b\u7684\u4e00\u4e9b\u52a8\u9759\u6001\u4ee3\u7801\u68c0\u67e5\u529f\u80fd\u3002\u8f6c\u6362\u6210vs 2013\u4ee5\u540e\uff0c\u53d1\u73b0\u7f16\u8bd1\u5668\u7684\u68c0\u67e5\u66f4\u52a0\u4e25\u683c\u4e86\u3002\u4e00\u4e9b\u8b66\u544a\u4f1a\u88ab\u89c6\u4e3a\u5f02\u5e38\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\nOSVERSIONINFO sInfo;\r\nsInfo.dwOSVersionInfoSize = sizeof(sInfo);\r\nGetVersionEx(&amp;sInfo);\r\n<\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5728vs 2013\u9ed8\u8ba4\u8bed\u6cd5\u68c0\u67e5\u89c4\u5219\u4e2d\u662f\u7f16\u8bd1\u65e0\u6cd5\u901a\u8fc7\u7684\u3002<br \/>\n\u67e5\u770bmsdn\u5bf9GetVersionEx\u7684\u8bf4\u660e(https:\/\/msdn.microsoft.com\/zh-cn\/library\/ms724451(v=vs.85).aspx)<\/p>\n<blockquote><p>[GetVersionEx may be altered or unavailable for releases after Windows 8.1. Instead, use the Version Helper APIs]<\/p><\/blockquote>\n<p>\u8be5api\u7531\u4e8e\u4e0d\u5b89\u5168\uff0c\u5728windows 8.1\u4e2d\u4f1a\u6709\u4e00\u7ec4\u51fd\u6570\u8fdb\u884c\u5bf9\u5176\u66ff\u4ee3\u3002\u540c\u65f6\uff0c\u5bf9stl\u548c\u7f16\u8bd1\u9884\u5904\u7406\u7684\u68c0\u67e5\u5c06\u5f00\u59cb\u66f4\u4e3a\u4e25\u683c\u3002\u540e\u7eed\u9700\u8981\u5bf9windows 8.1\u7684api\u548c\u4e4b\u524dwindows\u7684api\u8fdb\u884c\u5dee\u5f02\u6027\u4e86\u89e3\u3002\u901a\u8fc7\u53ef\u5f97\u77e5vs 2013\u7684\u8bbe\u8ba1\u5c31\u662f\u4e3a\u4e86\u64cd\u4f5c\u7cfb\u7edf\u800c\u51c6\u5907\u7684\uff0c\u6709\u610f\u6216\u65e0\u610f\u7684\u6539\u53d8\u7a0b\u5e8f\u5458\u7684\u90e8\u5206\u7f16\u7a0b\u4e60\u60ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u628a\u5de5\u7a0b\u5168\u90e8\u8f6c\u6362\u6210\u4e86vs 2013\uff0c\u4e3b\u8981\u662f\u901a\u8fc7vs2013\u4e0b\u7684\u4e00\u4e9b\u52a8\u9759\u6001\u4ee3\u7801\u68c0\u67e5\u529f\u80fd\u3002\u8f6c\u6362\u6210vs 2013\u4ee5\u540e\uff0c\u53d1\u73b0\u7f16\u8bd1\u5668\u7684\u68c0\u67e5\u66f4\u52a0\u4e25\u683c\u4e86\u3002\u4e00\u4e9b\u8b66\u544a\u4f1a\u88ab\u89c6\u4e3a\u5f02\u5e38\uff0c\u4f8b\u5982\uff1a OSVERSIONINFO sInfo; sInfo.dwOSVersionInfoSize = sizeof(sInfo); GetVersion &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/myblog.emhct.net.cn\/index.php\/archives\/1621\">read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,46,47],"tags":[],"class_list":["post-1621","post","type-post","status-publish","format-standard","hentry","category-win","category-win-api","category-ProgramSkill"],"_links":{"self":[{"href":"http:\/\/myblog.emhct.net.cn\/index.php\/wp-json\/wp\/v2\/posts\/1621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/myblog.emhct.net.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/myblog.emhct.net.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/myblog.emhct.net.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/myblog.emhct.net.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1621"}],"version-history":[{"count":2,"href":"http:\/\/myblog.emhct.net.cn\/index.php\/wp-json\/wp\/v2\/posts\/1621\/revisions"}],"predecessor-version":[{"id":1623,"href":"http:\/\/myblog.emhct.net.cn\/index.php\/wp-json\/wp\/v2\/posts\/1621\/revisions\/1623"}],"wp:attachment":[{"href":"http:\/\/myblog.emhct.net.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/myblog.emhct.net.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1621"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/myblog.emhct.net.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}