{"image_url":null,"author_name":"potisan","height":"190","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2021%2F02%2F06%2F142550\" title=\"C++&amp;Win32 API \u30e2\u30b8\u30e5\u30fc\u30eb\u30cf\u30f3\u30c9\u30eb\uff08HMODULE\uff09\u306f\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u306e\u30e1\u30e2\u30ea\u30de\u30c3\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u30a2\u30c9\u30ec\u30b9 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/potisan/","blog_url":"https://potisan-programming-memo.hatenablog.jp/","url":"https://potisan-programming-memo.hatenablog.jp/entry/2021/02/06/142550","provider_name":"Hatena Blog","categories":["C++","Windows"],"title":"C++&Win32 API \u30e2\u30b8\u30e5\u30fc\u30eb\u30cf\u30f3\u30c9\u30eb\uff08HMODULE\uff09\u306f\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u306e\u30e1\u30e2\u30ea\u30de\u30c3\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u30a2\u30c9\u30ec\u30b9","version":"1.0","published":"2021-02-06 14:25:50","provider_url":"https://hatena.blog","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","width":"100%","description":"\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u78ba\u8a8d\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001Windows NT\u7cfb\u5217\u3067\u306f\u30e2\u30b8\u30e5\u30fc\u30eb\u30cf\u30f3\u30c9\u30ebHMODULE\u306f\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u306e\u30e1\u30e2\u30ea\u30de\u30c3\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u30a2\u30c9\u30ec\u30b9\u3089\u3057\u3044\u3067\u3059\u3002\u306a\u306e\u3067\u3001GetModuleHandle\u3084LoadLibrary\u3067\u53d6\u5f97\u3057\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u30cf\u30f3\u30c9\u30eb\u3092char\u578b\u6587\u5b57\u5217\u306b\u30ad\u30e3\u30b9\u30c8\u3059\u308b\u3068\u6700\u521d\u306e2\u6587\u5b57\u306fMZ\uff08IMAGE_DOS_HEADER\u306e\u6700\u521d\u306e\u30e1\u30f3\u30d0\u30fc\u5909\u6570\uff09\u3067\u3001PSAPI\u306eGetMappedFileName\u95a2\u6570\u3067\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002 #include <bit> #include <string> #define STRICT #define NOMINMAX #include <Wi\u2026"}