我正在使用C#来调用DLL函数.
[DllImport("MyDLL.dll", SetLastError = true)]
public static extern uint GetValue(
pHandle handle,
ref somestruct a,
ref somestruct b);
Run Code Online (Sandbox Code Playgroud)
如何传递null参数3 的参考?
当我尝试时,我收到编译时错误:
无法转换
<null>为ref somestruct.
我也试过了IntPtr.Zero.