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?
When trying to call
SendMessageTimeouton 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
inttoIntPtr. Why did this work before, on my 64bit laptop?