<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bamch0h</author_name>
  <author_url>https://blog.hatena.ne.jp/bamch0h/</author_url>
  <blog_title>bamchoh’s diary</blog_title>
  <blog_url>https://bamch0h.hatenablog.com/</blog_url>
  <categories>
    <anon>golang</anon>
    <anon>windows</anon>
  </categories>
  <description>ひょんなことから golang で dll を動的に呼び出さなくてならなくて、引数として構造体のポインタを渡さなくちゃならなかったんだけど、調べてもよくわからんかったのでメモしておく。 dll 呼び出し側は以下のようなC言語の実装になっているとする。 #include &quot;stdio.h&quot; typedef struct struct1 { int x; int y; int ret; char name[8]; } struct1; int add0(int x, int y) { int ret; ret = x + y; return ret; } void add1(int x, int …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbamch0h.hatenablog.com%2Fentry%2F2019%2F01%2F20%2F014914&quot; title=&quot; syscall.Call に 構造体のポインタを渡す方法 - bamchoh’s diary&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>2019-01-20 01:49:14</published>
  <title> syscall.Call に 構造体のポインタを渡す方法</title>
  <type>rich</type>
  <url>https://bamch0h.hatenablog.com/entry/2019/01/20/014914</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
