{"blog_url":"https://potisan-programming-memo.hatenablog.jp/","image_url":null,"version":"1.0","author_url":"https://blog.hatena.ne.jp/potisan/","height":"190","categories":["C#"],"provider_url":"https://hatena.blog","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","type":"rich","url":"https://potisan-programming-memo.hatenablog.jp/entry/2019/03/23/000000","published":"2019-03-23 00:00:00","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2019%2F03%2F23%2F000000\" title=\"C# P/Invoke\u6642\u306e\u6587\u5b57\u5217\u578b\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u306e\u8003\u5bdf - 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>","description":"\u6982\u8981 \u6587\u5b57\u5217\u578b\u306e\u5f15\u6570\u3092\u4f34\u3046\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u547c\u3073\u51fa\u3057\uff08P/Invoke\uff09\u3092\u5b9f\u884c\u3059\u308b\u3068\u304d\u3001\u5f15\u6570\u306e\u578b\u306b\u3088\u308a\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u52d5\u4f5c\u304c\u5909\u308f\u308a\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306fC#\u5074\u304cstring/StringBuilder/byte\u578b\u3001\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5074\uff08C/C++\u5074\uff09\u304cLPWSTR/LPSTR\uff08UnmanagedType.LPWStr/LPStr\uff09\u306e\u5834\u5408\u306b\u3064\u3044\u3066\u6b21\u8868\u306e\u52d5\u4f5c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002LPTSTR\uff08UnmanagedType.LPTStr\uff09\u306e\u5834\u5408\u306fDllImport\u5c5e\u6027\u306eCharSet\u3067\u6307\u5b9a\u3055\u308c\u305f\u5024\u306b\u3088\u308aLPWSTR\u307e\u305f\u306fLPSTR\u304c\u9078\u629e\u3055\u308c\u307e\u3059\u3002 \u3053\u306e\u52d5\u4f5c\u306b\u3088\u308a\u3001\u6587\u5b57\u5217\u578b\u3092\u6e21\u3059\u3060\u3051\u306e\u5834\u5408\u306fstring\u578b\u3001\u547c\u3073\u51fa\u3057\u5074\u3067\u51e6\u7406\u2026","provider_name":"Hatena Blog","title":"C# P/Invoke\u6642\u306e\u6587\u5b57\u5217\u578b\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u306e\u8003\u5bdf","author_name":"potisan"}