I recently noticed an inconsistency in the winsafe library regarding parameter types for certain functions. Specifically, the ValidateRect function documentation indicates that the RECT parameter can be NULL, but the winsafe implementation requires a RECT type.
Using ILSpy to examine the .winmd file, I found that the ValidateRect definition includes the [Optional] attribute for parameters:
There are many other APIs with parameters marked as [Optional] that do not correspondingly use Option in winsafe. Correcting these bindings might be a considerable task.
Could you please let me know if there are any plans to address this issue? Thank you for your hard work and effort on maintaining this library.
Hello,
I recently noticed an inconsistency in the winsafe library regarding parameter types for certain functions. Specifically, the
ValidateRect
function documentation indicates that theRECT
parameter can beNULL
, but the winsafe implementation requires aRECT
type.Using ILSpy to examine the
.winmd
file, I found that theValidateRect
definition includes the[Optional]
attribute for parameters:There are many other APIs with parameters marked as
[Optional]
that do not correspondingly useOption
in winsafe. Correcting these bindings might be a considerable task.Could you please let me know if there are any plans to address this issue? Thank you for your hard work and effort on maintaining this library.
Thank you very much!