[DllImport("SocketAPI.dll", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)] public static extern int Obj_Meter_Formal_InitSession(int KeyState, [MarshalAs(UnmanagedType.VBByRefStr)] ref string EsamId, [MarshalAs(UnmanagedType.VBByRefStr)] ref string ASCTR, [MarshalAs(UnmanagedType.VBByRefStr)] ref string Flag, [MarshalAs(UnmanagedType.VBByRefStr)] ref string OutRandHost, [MarshalAs(UnmanagedType.VBByRefStr)] ref string OutSessinInit, [MarshalAs(UnmanagedType.VBByRefStr)] ref string OutSign);
转载于:https://www.cnblogs.com/zst-blogs/p/9861493.html
相关资源:DllImport导入C 的动态链接库