dotnet / pinvoke

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
MIT License
2.12k stars 222 forks source link

Type of DLGTEMPLATE #629

Closed lanyizi closed 1 year ago

lanyizi commented 1 year ago

https://github.com/dotnet/pinvoke/blob/92349c675931c0057e9749e1f3488f6fe2d8692e/src/User32/User32%2BDLGTEMPLATE.cs#L50 Are we sure that here are byte instead of short? https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-dlgtemplate

AArnott commented 1 year ago

Thanks for this report. A fix is in progress. But in the meantime, consider using CsWin32 which is less likely to have bugs like this.