Framework-Class-Library-Extension
Framework-Class-Library-Extension copied to clipboard
User32.SendMessageTimeout return value cannot be marshalled
When trying to call SendMessageTimeout on a 64-bit PixelSense Surface, I received a runtime exception that the return type could not be marshalled.
I managed to resolve it by changing the return type from int to IntPtr. Why did this work before, on my 64bit laptop?