C# を使用して DLL 関数を呼び出しています。
[DllImport("MyDLL.dll", SetLastError = true)]
public static extern uint GetValue(
pHandle handle,
ref somestruct a,
ref somestruct b);
null
引数 3 の参照を渡すにはどうすればよいですか?
試してみると、コンパイル時エラーが発生します。
<null>
から参照 somestruct に変換できません。
私も試しIntPtr.Zero
ました。