Ty móc podążać kod:
[StructLayout (LayoutKind.Sequential, CharSet = CharSet.Ansi)]
struct Parametr
{
int cp;
int tb;
[MarshalAs (UnmanagedType.SysInt, SizeConst = 8)]
int [] mapa;
[MarshalAs (UnmanagedType.R8, SizeConst = 8)]
kopia [] freq;
}
[DllImport ("MyDLL.Dll")]
jawny jawny ładunek elektrostatyczny int FunctionName (ref Parametr param);