<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sirocco</author_name>
  <author_url>https://blog.hatena.ne.jp/sirocco/</author_url>
  <blog_title>sirocco の書いてもすぐに忘れるメモ</blog_title>
  <blog_url>https://sirocco.hatenadiary.org/</blog_url>
  <categories>
    <anon>COM</anon>
    <anon>C</anon>
  </categories>
  <description>CLSID は GUID の別名として定義されています。 typedef struct _GUID { DWORD Data1; // 4バイト WORD Data2; // 2バイト WORD Data3; // 2バイト BYTE Data4[8]; // 1バイト×8 } GUID; typedef GUID CLSID; typedef GUID IID; ProgID &quot;ADODB.Connection&quot; から CLSID を求めてみます。 COM はマルチバイト文字列を使用しているので C の文字列からマルチバイトへ文字列の変換が必要です。 #include &quot;stdio.h&quot; #…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20100529%2F1275166661&quot; title=&quot;COM を学ぶ(4) ： ProgID から CLSID を求める。 - sirocco の書いてもすぐに忘れるメモ&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>2010-05-29 05:57:41</published>
  <title>COM を学ぶ(4) ： ProgID から CLSID を求める。</title>
  <type>rich</type>
  <url>https://sirocco.hatenadiary.org/entry/20100529/1275166661</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
