Closed ghost closed 6 years ago
According to the documentation for SetWindowLongPtr,
SetWindowLongPtr
When compiling for 32-bit Windows, SetWindowLongPtr is defined as a call to the SetWindowLong function.
SetWindowLong
What this really means is that calls to PInvoke.User32.SetWindowLongPtr on 32-bit processes will (and do) result in an EntryPointNotFoundException
PInvoke.User32.SetWindowLongPtr
EntryPointNotFoundException
This fix exposes SetWindowLongPtr through User32.Helpers.cs by conditionally calling SetWindowLongPtr on 64-bit vs. SetWindowLong on 32-bit.
User32.Helpers.cs
Also, adding a test.
Fixes #385
According to the documentation for
SetWindowLongPtr
,What this really means is that calls to
PInvoke.User32.SetWindowLongPtr
on 32-bit processes will (and do) result in anEntryPointNotFoundException
This fix exposes
SetWindowLongPtr
throughUser32.Helpers.cs
by conditionally callingSetWindowLongPtr
on 64-bit vs.SetWindowLong
on 32-bit.Also, adding a test.
Fixes #385