{"id":277,"date":"2012-07-09T16:23:14","date_gmt":"2012-07-09T07:23:14","guid":{"rendered":"http:\/\/soundengine.jp\/wordpress\/tips\/?p=277"},"modified":"2014-02-06T23:42:38","modified_gmt":"2014-02-06T14:42:38","slug":"c%e3%81%ab%e3%82%88%e3%82%8bwindows-os%e5%88%a4%e5%ae%9a9x%e7%b3%bb%e3%83%bbnt%e7%b3%bb","status":"publish","type":"post","link":"https:\/\/soundengine.jp\/wordpress\/tips\/try\/277\/","title":{"rendered":"C++\u306b\u3088\u308bWindows OS\u5224\u5b9a(9x\u7cfb\u30fbNT\u7cfb)"},"content":{"rendered":"<p>Visual C++\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u3044\u3066\u3001\u305f\u307e\u306bOS\u5224\u5b9a\u7279\u306b9x\u7cfb(Windows 95,98,Me)\u304bNT\u7cfb(Windows 2000,XP,Vista)\u304b\u3092\u77e5\u308a\u305f\u3044\u3053\u3068\u304c\u3042\u308b\u3002\u305d\u3093\u306a\u3068\u304d\u306e\u305f\u3081\u306eTips\u3002<\/p>\n<p><!--more--><\/p>\n<h2 id=\"content_1_0\">GetVersionEx  <a class=\"anchor_super\" id=\"wfd410d4\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-05-10%2F2#wfd410d4\" title=\"wfd410d4\"> <\/a><\/h2>\n<p>\u73fe\u5728\u306eOS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8abf\u3079\u308bAPI\u3002<a href=\"http:\/\/msdn.microsoft.com\/library\/ja\/default.asp?url=\/library\/ja\/jpsysinf\/html\/_win32_getversionex.asp\" rel=\"nofollow\">MSDN<\/a>\u306b\u3088\u308c\u3070\u3001Windows 95 \u4ee5\u964dWindows NT 3.5 \u4ee5\u964d\u3067\u4f7f\u3048\u308b\u3068\u306e\u3053\u3068\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u306f\u7c21\u5358\u3002\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3002<\/p>\n<pre>OSVERSIONINFOA OsVersionInfo;\r\nOsVersionInfo.dwOSVersionInfoSize = sizeof( OsVersionInfo );\r\nGetVersionExA( &amp;OsVersionInfo );<\/pre>\n<p>\u305f\u3060\u3057\u3001\u3053\u306e\u3088\u3046\u306b\u672b\u5c3e\u306bA\u304c\u3064\u304f\u3082\u306e(\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u5217\u7528)\u3067\u306a\u3044\u30689x\u7cfb\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3053\u3061\u3089\u3092\u4f7f\u3046\u3002<\/p>\n<p>\u3055\u3066\u3001\u95a2\u6570\u3092\u5b9f\u884c\u3057\u305f\u3089\u4e0a\u8a18\u3067\u3044\u3046OsVersionInfo\u306b\u5024\u304c\u30bb\u30c3\u30c8\u3055\u308c\u308b\u306e\u3067\u305d\u308c\u3092\u898b\u308b\u3002\u4eca\u56de\u306e\u3070\u3042\u3044\u30019x\u7cfb\u304bNT\u7cfb\u304b\u306e\u5224\u5b9a\u3068\u3044\u3046\u3053\u3068\u3067\u3001dwPlatformId\u3068\u3044\u3046\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u793a\u3059\u90e8\u5206\u3060\u3051\u3092\u898b\u308c\u3070\u3088\u3044\u3002\u3053\u306e\u5024\u306f\u30019x\u7cfb\u306e\u5834\u5408VER_PLATFORM_WIN32_WINDOWS\u3068\u306a\u308a\u3001NT\u7cfb\u306e\u5834\u5408VER_PLATFORM_WIN32_NT\u306b\u306a\u308b\u3088\u3046\u3060\u3002(\u3044\u307e\u3060\u306bNT\u7cfb\u3068\u3044\u3046\u306e\u3082\u4f55\u304b\u5909\u306a\u6c17\u304c\u3059\u308b\u304c\u3001\u3001\u3001)<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u4eca\u4f7f\u3063\u3066\u308bWindows XP\u3060\u3068\u3053\u306e\u3088\u3046\u306a\u5024\u306b\u306a\u3063\u305f\u3002<\/p>\n<pre>dwOSVersionInfoSize\t148\tunsigned long\r\ndwMajorVersion\t5\tunsigned long\r\ndwMinorVersion\t1\tunsigned long\r\ndwBuildNumber\t2600\tunsigned long\r\ndwPlatformId\t2\tunsigned long\r\nszCSDVersion\t0x0012fed4 \"Service Pack 2\"\tchar [128]<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Visual C++\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u3044\u3066\u3001\u305f\u307e\u306bOS\u5224\u5b9a\u7279\u306b9x\u7cfb(Wind &hellip; <a href=\"https:\/\/soundengine.jp\/wordpress\/tips\/try\/277\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-277","post","type-post","status-publish","format-standard","hentry","category-try"],"_links":{"self":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/comments?post=277"}],"version-history":[{"count":6,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":3337,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/277\/revisions\/3337"}],"wp:attachment":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/media?parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/categories?post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/tags?post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}