<?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>Win32 API</anon>
    <anon>Python 3.4</anon>
  </categories>
  <description>Pythonから固定長文字列を含む構造体を要求するWin APIを呼び出す方法のサンプルと途中で学んだことの覚書です。最初は実際のコードから。 サンプルコード このコードではGetVersionEx関数とOSVERSIONINFO構造体（固定長文字列''TCHAR szCSDVersion[128]''を含む）を用いて、固定長文字列を含む構造体を要求するWin APIの呼び出しを確認します。 from ctypes import * class OSVERSIONINFO(Structure): _fields_ = [ (&quot;os_version_info_size&quot;, c_uint), (&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2014%2F08%2F21%2F000000&quot; title=&quot;Pythonから固定長文字列を含む構造体を要求するWin APIを呼び出す他 - 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>2014-08-21 00:00:00</published>
  <title>Pythonから固定長文字列を含む構造体を要求するWin APIを呼び出す他</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2014/08/21/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
