{"id":75,"date":"2012-06-19T13:57:27","date_gmt":"2012-06-19T04:57:27","guid":{"rendered":"http:\/\/soundengine.jp\/wordpress\/tips\/?p=75"},"modified":"2014-02-06T23:42:41","modified_gmt":"2014-02-06T14:42:41","slug":"shgetspecialfolderpath","status":"publish","type":"post","link":"https:\/\/soundengine.jp\/wordpress\/tips\/try\/75\/","title":{"rendered":"SHGetSpecialFolderPath"},"content":{"rendered":"<h2 id=\"content_1_0\">\u7279\u5225\u306a\u30b7\u30a7\u30eb\u30d5\u30a9\u30eb\u30c0  <a class=\"anchor_super\" id=\"cf6f7e2e\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2006-12-19#cf6f7e2e\" title=\"cf6f7e2e\"> <\/a><\/h2>\n<p>Windows\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u7279\u5225\u306a\u30b7\u30a7\u30eb\u30d5\u30a9\u30eb\u30c0\u3068\u3044\u3046\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u300c\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u300d\u3067\u3042\u3063\u305f\u308a\u3001\u300c\u30de\u30a4 \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u300d\u3067\u3042\u3063\u305f\u308a\u3001\u300c\u304a\u6c17\u306b\u5165\u308a\u300d\u3067\u3042\u3063\u305f\u308a\u3002\u305d\u306e\u4e2d\u3067\u3082\u3001\u300c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u300d\u3068\u3044\u3046\u306e\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001SoundEngine\u3067\u305d\u3053\u3092\u4f7f\u3048\u308b\u3088\u3046\u306a\u4ed5\u7d44\u307f\u3082\u53d6\u308a\u5165\u308c\u3066\u3044\u3053\u3046\u304b\u3068\u601d\u3044\u307e\u3057\u3066\u53d6\u308a\u4e0a\u3052\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u6614\u304b\u3089\u521d\u671f\u5316\u30d5\u30a1\u30a4\u30eb\u306a\u308a\u305d\u3046\u3044\u3063\u305f\u3082\u306e\u3092\u3069\u3053\u306b\u914d\u7f6e\u3059\u308b\u304b\u3068\u3044\u3046\u306e\u306f\u554f\u984c\u3067\u3057\u305f\u3002\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3068\u4e00\u7dd2\u306e\u5834\u5408Program Files\u306b\u7f6e\u304f\u3068\u4e0d\u90fd\u5408\u304c\u3067\u3066\u3057\u307e\u3044\u3059\u3057\uff08\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3067\u4f7f\u304a\u3046\u3068\u3059\u308b\u3068\uff09\u3001\u30ec\u30b8\u30b9\u30c8\u30ea\u306b\u7f6e\u304f\u3068\u30ec\u30b8\u30b9\u30c8\u30ea\u304c\u6c5a\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u308c\u3092\u89e3\u6c7a\u3059\u308b\u4e00\u3064\u306e\u624b\u304c\u3001\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u304b\u306a\u3068\u3002<\/p>\n<div class=\"jumpmenu\">\n<\/div>\n<h2 id=\"content_1_1\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf  <a class=\"anchor_super\" id=\"v64c3bfa\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2006-12-19#v64c3bfa\" title=\"v64c3bfa\"> <\/a><\/h2>\n<p>\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u306f\u3001IE4.0\u4ee5\u4e0a\u304c\u5bfe\u8c61\u3068\u3044\u3046\u3053\u3068\u3067\u6628\u4eca\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3067\u306f\u4f7f\u3063\u3066\u3082\u7279\u306b\u554f\u984c\u306a\u3044\u3088\u3046\u306a\u6c17\u306f\u3057\u307e\u3059\u3002SHGetSpecialFolderPath\u81ea\u4f53\u306f\u3001Windows 98\u304b\u3089\u4f7f\u3048\u308b\u3082\u306e\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u4f7f\u3046\u65b9\u6cd5\u3068\u3057\u3066\u306f\u3001#include &lt;shlobj.h&gt;\u3068#pragma comment( lib, &#8220;shell32.lib&#8221; )\u3067\u3057\u3087\u3046\u304b\u3002shell32.lib\u3092\u5165\u308c\u305a\u306b\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u300cerror LNK2001: \u5916\u90e8\u30b7\u30f3\u30dc\u30eb &#8220;__imp__SHGetSpecialFolderPathA@16&#8221; \u306f\u672a\u89e3\u6c7a\u3067\u3059\u3002\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3088\u3046\u3067\u3059\u3002\uff08\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u3067MFC\u3092\u30ea\u30f3\u30af\u3059\u308b\u5834\u5408\uff09\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u3057\u3066\u306f\u3001\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u306d\u3002\u6700\u5f8c\u306eTRUE\u3067\u30d5\u30a9\u30eb\u30c0\u304c\u306a\u3044\u5834\u5408\u306b\u4f5c\u6210\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre>TCHAR path[ _MAX_PATH ];\r\n\r\nSHGetSpecialFolderPath\r\n\t(\r\n\tNULL,\r\n\tpath,\r\n\tCSIDL_APPDATA,\r\n\tTRUE\r\n\t);<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u8a66\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001Me\u3084XP\u3067\u306f\u3061\u3083\u3093\u3068\u30d1\u30b9\u304c\u5e30\u3063\u3066\u304d\u307e\u3057\u305f\u304c\u300198\u3067\u306f\u3069\u3046\u3084\u3089\u5e30\u3063\u3066\u3053\u306a\u3044\u3088\u3046\u3067\u3057\u305f\u3002\u307e\u3060\u3061\u3087\u3063\u3068\u7814\u7a76\u304c\u5fc5\u8981\u304b\uff1f<\/p>\n<div class=\"jumpmenu\">\n<\/div>\n<h2 id=\"content_1_2\">\u65b9\u91dd  <a class=\"anchor_super\" id=\"wd10faf9\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2006-12-19#wd10faf9\" title=\"wd10faf9\"> <\/a><\/h2>\n<p>\u3068\u306f\u3044\u3048\u3053\u308c\u3092\u3069\u3046SoundEngine\u306b\u3044\u304b\u3059\u304b\u306f\u96e3\u3057\u3044\u3068\u3053\u308d\u3067\u3059\u3002\u4f5c\u696d\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u3063\u3066\u308b\u30d5\u30a1\u30a4\u30eb\u3042\u305f\u308a\u304b\u3089\u9069\u5fdc\u3057\u3066\u884c\u3053\u3046\u304b\u306a\u3041\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u304c\u3002\u7406\u60f3\u7684\u306b\u306f\u3001\u4e00\u6642\u7684\u306b\u4f7f\u3046\u3082\u306e\u306fTemp\u30d5\u30a9\u30eb\u30c0\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u5909\u66f4\u3057\u306a\u3044\u3082\u306e\u3092\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u3001\u305d\u306e\u4ed6\u3092\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a9\u30eb\u30c0\u307f\u305f\u3044\u5f62\u3067\u914d\u7f6e\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u30022.98\u7cfb\u3067\u691c\u8a0e\u3057\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7279\u5225\u306a\u30b7\u30a7\u30eb\u30d5\u30a9\u30eb\u30c0 Windows\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u7279\u5225\u306a\u30b7\u30a7\u30eb\u30d5\u30a9\u30eb\u30c0\u3068\u3044\u3046\u306e\u304c &hellip; <a href=\"https:\/\/soundengine.jp\/wordpress\/tips\/try\/75\/\">\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-75","post","type-post","status-publish","format-standard","hentry","category-try"],"_links":{"self":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/75","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=75"}],"version-history":[{"count":6,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":3384,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/75\/revisions\/3384"}],"wp:attachment":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}