<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>espresso3389</author_name>
  <author_url>https://blog.hatena.ne.jp/espresso3389/</author_url>
  <blog_title>espresso3389の日記</blog_title>
  <blog_url>https://espresso3389.hatenablog.com/</blog_url>
  <categories>
    <anon>Win32</anon>
    <anon>C++</anon>
  </categories>
  <description>アプリを無理矢理動作させて、無理矢理印刷させるという、ある意味使い古されたスキームなんだけど、ウェブを探してもShellExecuteExを使った例は少ない。理由は簡単で、つい最近まで、プロセスハンドルから、プロセスIDを取得できなかったという簡単なこと。XP SP1以降でやっと、GetProcessIdが提供されるようになったみたい。一方で、プロセスIDからOpenProcessしてみたらどうなんだというと、特定のプロセスに対してハンドルはいくつでも作成できてしまうので、別のハンドル値が返ってくる。比較するには適さないらしい。さらに、ハンドルからプロセスの素性を知るようなAPIは提供されてい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fespresso3389.hatenablog.com%2Fentry%2F20080708%2F1215517481&quot; title=&quot;ShellExecuteExで起動したアプリの制御 - espresso3389の日記&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>2008-07-08 20:44:41</published>
  <title>ShellExecuteExで起動したアプリの制御</title>
  <type>rich</type>
  <url>https://espresso3389.hatenablog.com/entry/20080708/1215517481</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
