<?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>C#ではCOM参照を経由してShell.Applicationを使用できます。Shell.Applicationを使うとシェル項目の列挙やプロパティの取得といった多くの機能を使用できますが、シェル項目へのプロパティ設定やプロパティの列挙にはShell.Application以外のCOM機能（おそらくRCW/ComWrappersによる実装が必要なもの）が必要そうです。一部の情報取得だけが目的の場合、Shell.Applicationの使用も有効な選択肢だと感じました。 以下のコードではデスクトップ上にある項目の表示名、絶対解析名、ファイルサイズをプロパティとして取得します。コンソールアプリケー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2026%2F09%2F03%2F182028&quot; title=&quot;C#&amp;amp;Windows Shell.Applicationでシェル情報は取得可能＆プロパティの設定や列挙にはRCW/ComWrappersが必要 - 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>2026-09-03 18:20:28</published>
  <title>C#&amp;Windows Shell.Applicationでシェル情報は取得可能＆プロパティの設定や列挙にはRCW/ComWrappersが必要</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2026/09/03/182028</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
