You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to generate c# bindings for some c libraries, but CsWin32 can't handle struct with function pointer such as const char* (*item_name)(void* ctx);.
src\Microsoft.Windows.CsWin32\Generator.MetadataHelpers.cs IsManagedType:244 throw this error: Unrecognized type: HandleTypeHandleInfo.
Ok, so you're not reading win32metadata here, but something custom that you produced?
If so, we don't have testing infrastructure built for anything other than the win32metadata and wdk metadata files, so support for other winmd's is 'best effort' at the moment rather than a guarantee. This is a gap that I'd like to fill, but we lack resources to do it.
If you'd like to help, the first step would be to contrive some way to produce winmd's as part of our build in this repo that can contain whatever special patterns you please (e.g. your function pointers).
Then we'd wire that up as an input to our tests.
We'd then be in a great position to add support for those patterns.
error:
Failed while generating field: item_name. Unrecognized type: HandleTypeHandleInfo.
The text was updated successfully, but these errors were encountered: