Is it possible to import in C# structs definitions from C dlls?
In all the examples I saw were to redefine the structs in C#. What if the struct changes? I need to alter in two locations in my project...
struct MyCStruct { unsigned long A; unsigned long B; unsigned long C; }; and in C#:
[StructLayout(LayoutKind.Sequential)] internal struct MyCStructAgain { public uint A; public uint B; public uint C; } If It's not possible to reuse the definitions, why is that?
Thanks