Open iSazonov opened 7 months ago
There is no way CsWin32 can generate function pointers when the metadata only gives us IntPtr
. I'll move this to the metadata repo so they can correct it there.
These delegates need to be manually defined similar to https://github.com/microsoft/win32metadata/issues/842.
Actual behavior
I found that not all types are from authif.h are generated as expected.
Expected behavior
Metadata for RADIUS_ATTRIBUTE_ARRAY:
Generated code:
Expected code:
The same for RADIUS_EXTENSION_CONTROL_BLOCK (GetRequest, GetResponse, SetResponseType). Expected code:
Also I would expect to be generated entry points for callbacks (now there are only delegate types corresponding to them): (although this may not be what this project is for, it could nevertheless be commented out code as a sample.)
Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present):