<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>metaphoricwords</author_name>
  <author_url>https://blog.hatena.ne.jp/metaphoricwords/</author_url>
  <blog_title>0xfeeb - endless loop</blog_title>
  <blog_url>https://metaphoricwords.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>ctypesを使うとDLLが呼び出せることを前に書いた。 こんな感じで。 from ctypes import * user32 = windll.user32 user32.MessageBoxW(0, u'Python ctypes test', 0, 0) ctypesの便利さはこんなものじゃない。 Pythonの関数を関数ポインタのように扱って、callback関数にしたり、CreateThreadしたりできる。 from ctypes import * user32 = windll.user32 kernel32 = windll.kernel32 def callbackFunc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmetaphoricwords.hatenadiary.org%2Fentry%2F20090716%2F1247749510&quot; title=&quot;ctypesで関数ポインタを扱う - 0xfeeb - endless loop&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>2009-07-16 22:05:10</published>
  <title>ctypesで関数ポインタを扱う</title>
  <type>rich</type>
  <url>https://metaphoricwords.hatenadiary.org/entry/20090716/1247749510</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
