<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>BG1</author_name>
  <author_url>https://blog.hatena.ne.jp/BG1/</author_url>
  <blog_title>車輪のx発明 ~B.G's Blog~</blog_title>
  <blog_url>https://bg1.hatenablog.com/</blog_url>
  <categories>
    <anon>WindowsAPI</anon>
  </categories>
  <description>CM_Get_Device_IDで、指定のDevInstのデバイスのデバイスIDを取得する。CM_Get_Device_IDW関数 (cfgmgr32.h) - Win32 apps | Microsoft LearnCM_Get_Device_ID.cppで、CM_Get_Device_ID_Sizeで得られたulBufLenには、文字列終端のNULL文字分は含まれていないらしいので、ulBufLen + 1の長さでバッファを生成するのに注意。 USBデバイスのデバイスIDは&quot;USB\~&quot;から始まる。USBデバイスのデバイスIDは&quot;USB\~&quot;から始まる。Sample/winapi/CM_G…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbg1.hatenablog.com%2Fentry%2F2023%2F04%2F16%2F000000&quot; title=&quot;CM_Get_Device_ID - 車輪のx発明 ~B.G&amp;#39;s Blog~&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>https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20230518/20230518181818.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-04-16 00:00:00</published>
  <title>CM_Get_Device_ID</title>
  <type>rich</type>
  <url>https://bg1.hatenablog.com/entry/2023/04/16/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
