<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tales</author_name>
  <author_url>https://blog.hatena.ne.jp/tales/</author_url>
  <blog_title>Swanman's Horizon</blog_title>
  <blog_url>https://lyna.hateblo.jp/</blog_url>
  <categories>
    <anon>Delphi</anon>
    <anon>TIPS</anon>
  </categories>
  <description>動的配列の参照とほとんど同じだけど、例えばWin32APIのReadProcessMemoryの引数であるlpNumberOfBytesReadは本来オプションであり、nilを渡しても問題のないはずが、Windows.pasでは参照渡しとして宣言されているために直接nilが指定できなかったりする。 でもこんな場合も、 ReadProcessMemory(..., PDWORD(nil)^); としてやればnilが渡せる。余分なダミー変数を作らずに済んで精神衛生的によい感じ。今回はPDWORDでキャストしているけど、他の場合は本来渡すべき型のポインタ型でキャストすればOK。 もちろんnilを渡す…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flyna.hateblo.jp%2Fentry%2F20090816%2F1250416429&quot; title=&quot;参照渡しのパラメータにnilを渡す - Swanman&amp;#39;s Horizon&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-08-16 18:53:49</published>
  <title>参照渡しのパラメータにnilを渡す</title>
  <type>rich</type>
  <url>https://lyna.hateblo.jp/entry/20090816/1250416429</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
