<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Windows</anon>
  </categories>
  <description>IContextMenuでメモ帳のコンテキストメニューの情報を取得していたら、説明（コンテキストメニューの項目選択時にステータスバーに表示される内容）の取得でメモリ例外が発生しました。簡単な状況と解決策をメモします。 例外の発生方法は次の通りです。 メモ帳（Notepad.exe）のIContextMenuを作成する。 IContextMenuから項目を取得する。 取得した項目の名前とIDを列挙する。 説明を列挙する（例外）。 例外の原因は下記の通り。 IContextMenuから取得した項目に特殊項目が含まれる。 GetMenuItemIDは特殊項目に特殊なリソースID（16ビット整数を超え…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2017%2F12%2F17%2F000000&quot; title=&quot;C# IContextMenuのGetCommandStringにリソースIDではまったときの記録 - potisanのプログラミングメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-17 00:00:00</published>
  <title>C# IContextMenuのGetCommandStringにリソースIDではまったときの記録</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2017/12/17/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
