so you mean in my c# code, i need to have this struct?
public struct myStruct{
IntPtr ptr;
Int32 myInt1;
Int32 myInt2;
Int32 myLong1; //On Windows, longs are 32 bits wide.
};
or in my CLI code?
if in my CLI code, i cast my void* pStruct to Intptr:
IntPtr myIntP = IntPtr(pStruct);
and then I pass myIntP to the C# code, will that work?