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.11k stars 220 forks source link

`User32.EnumChildWindows` has wrong typed argument #611

Closed Tangent-90 closed 1 year ago

Tangent-90 commented 1 year ago

The type of argument lpEnumFunc should be User32.WNDENUMPROC, but currently is nativeint (IntPtr)

image

AArnott commented 1 year ago

Consider using CsWin32 instead, which already has this right.