{"url":"https://potisan-programming-memo.hatenablog.jp/entry/2026/01/12/033201","description":"CM_Register_Notification\u95a2\u6570\u3067\u6307\u5b9a\u3057\u305f\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u6b21\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3057\u305f\u3089\u30c7\u30d0\u30a4\u30b9\u540d (CM_NOTIFY_EVENT_DATA.u.DeviceInstance.InstanceId)\u304c\u304a\u304b\u3057\u306a\u5024\u306b\u306a\u308a\u307e\u3057\u305f\u3002 [UnmanagedFunctionPointer(CallingConvention.Winapi)] private delegate uint PCM_NOTIFY_CALLBACK( nint hNotify, nint Context, CM_NOTIFY_ACTION Action, ref CM_NOTIFY_EVENT_DATA EventD\u2026","type":"rich","provider_url":"https://hatena.blog","author_name":"potisan","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2026%2F01%2F12%2F033201\" title=\"C#&amp;Windows P/Invoke\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3067\u53ef\u5909\u9577\u914d\u5217\u3092\u542b\u3080\u69cb\u9020\u4f53\u3092\u53d7\u3051\u53d6\u308b\u5834\u5408\u306fnint\u3092\u4f7f\u3046 - 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>","published":"2026-01-12 03:32:01","provider_name":"Hatena Blog","title":"C#&Windows P/Invoke\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3067\u53ef\u5909\u9577\u914d\u5217\u3092\u542b\u3080\u69cb\u9020\u4f53\u3092\u53d7\u3051\u53d6\u308b\u5834\u5408\u306fnint\u3092\u4f7f\u3046","width":"100%","categories":["C#","Windows"],"author_url":"https://blog.hatena.ne.jp/potisan/","version":"1.0","image_url":null,"blog_url":"https://potisan-programming-memo.hatenablog.jp/","height":"190"}