{"image_url":null,"url":"https://potisan-programming-memo.hatenablog.jp/entry/2020/11/26/214836","title":"C# 9.0 \u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066\u6587\u5b57\u5217\u306e\u30ab\u30b9\u30bf\u30e0\u30de\u30fc\u30b7\u30e3\u30e9\u30fc","author_name":"potisan","version":"1.0","type":"rich","description":"\u306f\u3058\u3081\u306b \u30ab\u30b9\u30bf\u30e0\u30de\u30fc\u30b7\u30e3\u30e9\u30fc CoTaskMem\u2192Unicode\u6587\u5b57\u5217 HLOCAL\u2192Unicode\u6587\u5b57\u5217 FormatMessageW\u306e\u4f8b \u53c2\u8003 \u306f\u3058\u3081\u306b C#\u3067\u306f\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u30a2\u30f3\u30de\u30cd\u30fc\u30b8\u95a2\u6570\u306eP/Invoke\u6642\u306b\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u307e\u3059\u3002 ICustomMarshaler\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u5b9f\u88c5\u3057\u305f\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3002 \u9069\u7528\u3059\u308b\u30a2\u30f3\u30de\u30cd\u30fc\u30b8\u95a2\u6570\u306e\u5f15\u6570\u307e\u305f\u306f\u623b\u308a\u5024\u306b\u5c5e\u6027[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(<\u30ab\u30b9\u30bf\u30e0\u30de\u30fc\u30b7\u30e3\u30e9\u30fc>))]\u3092\u6307\u5b9a\u3059\u308b\u3002 \u4ee5\u4e0b\u3067\u306fWin32API\u306e\u95a2\u6570\u5185\u3067\u30e1\u30e2\u30ea\u306b\u5272\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2020%2F11%2F26%2F214836\" title=\"C# 9.0 \u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066\u6587\u5b57\u5217\u306e\u30ab\u30b9\u30bf\u30e0\u30de\u30fc\u30b7\u30e3\u30e9\u30fc - 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>","provider_name":"Hatena Blog","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","categories":["C#","Windows"],"published":"2020-11-26 21:48:36","author_url":"https://blog.hatena.ne.jp/potisan/","width":"100%","provider_url":"https://hatena.blog","height":"190","blog_url":"https://potisan-programming-memo.hatenablog.jp/"}