<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ardarim</author_name>
  <author_url>https://blog.hatena.ne.jp/ardarim/</author_url>
  <blog_title>ardarimのブログ</blog_title>
  <blog_url>https://ardarim.hatenablog.com/</blog_url>
  <categories>
    <anon>Windows</anon>
  </categories>
  <description>とある事情があってWinsockのフックDLLを作る。 たぶん一番まっとうなやり方はSPIを作ってかませるやり方だと思うが、作ったことがないし環境もないので諦めて泥臭いやり方で。ws2_32.dllという名前のDLLを作って、ローカルディレクトリに置き、本来のAPIをバイパスする。 ws2_32.dllがエクスポートするほぼ全てのAPIのスタブを書き、その中からGetProcAddressで取得した本来のws2_32.dllのAPIを呼び出す。Platform Builder環境だったらws2_32.libが手に入るので全部のスタブを書かなくても、フックしたい関数だけ書いてws2_32.lib…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fardarim.hatenablog.com%2Fentry%2F20080414%2F1208188985&quot; title=&quot; ERROR_INVALID_ADDRESS - ardarimのブログ&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-04-14 01:03:05</published>
  <title> ERROR_INVALID_ADDRESS</title>
  <type>rich</type>
  <url>https://ardarim.hatenablog.com/entry/20080414/1208188985</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
