I seem to remember a package mentioned in these hallowed threads, which implemented a higher level C interface, in particular, I think that it handled structures well, especially if they had things like bitfields.
it doesn’t seem to be in the interop group, and of course, I can’t remember what it was called.
Or possibly i was imagining it ?