You can try follow code:
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
struct Parameters
{
int cp;
int tb;
[MarshalAs(UnmanagedType.SysInt, SizeConst = 8)]
int[] map;
[MarshalAs(UnmanagedType.R8, SizeConst = 8)]
double[] freq;
}
[DllImport("MyDLL.Dll")]
public extern static int FunctionName(ref Parameters param);