{"id":141,"date":"2000-05-03T00:00:00","date_gmt":"2000-05-02T15:00:00","guid":{"rendered":"http:\/\/localhost\/blog\/?p=130"},"modified":"2014-08-14T15:59:01","modified_gmt":"2014-08-14T06:59:01","slug":"%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e3%83%89%e3%83%a9%e3%83%83%e3%82%b0%e3%82%a2%e3%83%b3%e3%83%89%e3%83%89%e3%83%ad%e3%83%83%e3%83%97","status":"publish","type":"post","link":"https:\/\/denasu.com\/blog\/2000\/05\/diary141","title":{"rendered":"\u30d5\u30a1\u30a4\u30eb\u306e\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7"},"content":{"rendered":"<p>\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u3002\u524d\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u3078\u306e\u30c9\u30ed\u30c3\u30d7\uff0c\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3078\u306e\u30c9\u30ed\u30c3\u30d7\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u304c\uff0c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u3078\u306e\u30c9\u30ed\u30c3\u30d7\u306f\uff0cDROPFILES \u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u8a2d\u5b9a\u3059\u308c\u3070\u3088\u3044\u3002\uff08\u4ee5\u524d\u3046\u307e\u304f\u3044\u304b\u306a\u3063\u305f\u3093\u3060\u304c\uff0c\u4eca\u56de\u306f\u3067\u304d\u305f\u3002\uff09<\/p>\n<pre class=\"brush:cpp\">\r\n\/\/ DROPFILES \u306e\u30b5\u30a4\u30ba\u3092\u8a08\u7b97\r\nint nSize = sizeof(DROPFILES);\r\nnSize += 1000;  \/\/ \u9069\u5f53\u306b\r\n\r\n\/\/ DROPFILES \u3092\u4f5c\u6210\r\nHGLOBAL hData = ::GlobalAlloc(GPTR, nSize);\r\nif(hData == NULL)\r\n{\r\nthrow cant_cache();\r\n}\r\nDROPFILES *pDropFiles = (DROPFILES *)::GlobalLock(hData);\r\nmemset((void *)pDropFiles, NULL, nSize);\r\npDropFiles-&gt;pFiles = sizeof(DROPFILES);\r\npDropFiles-&gt;pt = CPoint(0, 0);\r\npDropFiles-&gt;fNC = FALSE;\r\npDropFiles-&gt;fWide = FALSE;\r\n\r\n\/\/ \u30d5\u30a1\u30a4\u30eb\u540d\u3092\u30bb\u30c3\u30c8\r\nchar *pFileName = (char *)pDropFiles + sizeof(DROPFILES);\r\n\/\/ \uff08 \u533a\u5207\u308a\u3067\u30b3\u30d4\u30fc\uff09\r\n*pFileName = '';\r\n\r\n\/\/ \u30ad\u30e3\u30c3\u30b7\u30e5\r\n::GlobalUnlock(hData);                                                 \r\npDataSource-&gt;CacheGlobalData(CF_HDROP, hData);\r\n<\/pre>\n<p>\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3078\u306e\u30c9\u30ed\u30c3\u30d7\u306f Shell IDList Array \u5f62\u5f0f\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308c\u3070\u3044\u3044\u306e\u3060\u304c\uff0c\u3061\u3087\u3063\u3068\u9577\u3044\u3057\u79c1\u3082\u5b8c\u5168\u306b\u7406\u89e3\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u624b\u9806\u3060\u3051\u3002<\/p>\n<ul>\n<li>\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30d5\u30a9\u30eb\u30c0\u306e IShellFolder \u3078\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u5f97\u308b<\/li>\n<li>ITEMIDLIST \u3092\u4f5c\u6210\u3002\u305d\u306e\u969b\u6700\u521d\u306e\u30c7\u30fc\u30bf\u304c\u30d5\u30a9\u30eb\u30c0\u3078\u306e ITEMIDLIST \u3067\uff0c\u6b21\u306e\u30c7\u30fc\u30bf\u304b\u3089\u304c\u30d5\u30a1\u30a4\u30eb\u3078\u306e ITEMIDLIST\u3002<\/li>\n<li>CIDA \u3092\u4f5c\u308b\u3002<\/li>\n<li>CIDA\uff0cITEMIDLIST \u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u3002\u524d\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u3078\u306e\u30c9\u30ed\u30c3\u30d7\uff0c\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3078\u306e\u30c9\u30ed\u30c3\u30d7\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u304c\uff0c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002 \u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u3078\u306e\u30c9\u30ed\u30c3\u30d7\u306f\uff0cDROPFILES \u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u8a2d\u5b9a\u3059\u308c\u3070\u3088\u3044\u3002\uff08\u4ee5\u524d\u3046\u307e\u304f\u3044\u304b\u306a\u3063\u305f\u3093\u3060\u304c\uff0c\u4eca\u56de\u306f\u3067\u304d\u305f\u3002\uff09 \/\/ DROPFILES \u306e\u30b5\u30a4\u30ba\u3092\u8a08\u7b97 int nSize = sizeof(DROPFILES); nSize += 1000; \/\/ \u9069\u5f53\u306b \/\/ DROPFILES \u3092\u4f5c\u6210 HGLOBAL hData = ::GlobalAlloc(GPTR, nSize); if(hData == NULL) { throw cant_cache(); } DROPFILES *pDropFiles = (DROPFILES *)::GlobalLock(hData); memset((void *)pDropFiles, NULL, nSize); pDropFiles-&gt;pFiles = sizeof(DROPFILES); pDropFiles-&gt;pt = CPoint(0, 0); pDropFiles-&gt;fNC = FALSE; pDropFiles-&gt;fWide = FALSE; \/\/ \u30d5\u30a1\u30a4\u30eb\u540d\u3092\u30bb\u30c3\u30c8 char [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[22],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-programming","tag-win32"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4ZThs-2h","_links":{"self":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":2,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":2515,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions\/2515"}],"wp:attachment":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}