Pages about Interop

Control data alignment in C# struct

Using the StructLayout and FieldOffset attributes, it's possible to control detailed data alignment when transmitting data between .NET-base and C++/C-based or assembler software.