Hi @StefH ,
First of all thanks for you work and this library 🎉
Have you thought on using the source generation introduced in .NET 7 and maybe adding some benchmarks?
https://learn.microsoft.com/en-us/dotnet/standard/native-interop/cross-platform
https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke-source-generation
Cheers
Simon