DaveyM69 wrote:
[MarshalAs(UnmanagedType.ByValArray)]
public uint[] dwParms;
You should specify
SizeConst parameter for MarshalAsAttribute.You should declare your problematic field as IntPtr,if you don't know the array size.This I wrote this too into your thread before few days.When you get pointer to your struct use Marchal.Copy to copy the data to managed array.See
this sample.