I want to use PInvoke to bring to managed side something this:
(C code)
typedef struct{
//some fields...
} A;type struct{
A* a;
} B;int getB(B* destination){ //destionation will be an output parameter to C#
//puts an B in 'destination'
return 0;
}
Now, i need a way to tell managed side how to marshalling B from C to C# structure or class. I've tryed many things such as IntPtr fields, MarchalAs atributes, but with no success. I will not expose here the code that i've tryed to keep the question simple. However i could do it as long answers arrive.
Thanks