Well, in case you need to mutate the struct, just build it the way you need it and fill the gaps with padding bytes. Otherwise simply pass a void* pointer and generate the struct only in the DLL.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com