Hi there,
Given the following in Win32
[DllImport("User32.dll")]
internal static extern Int32 SendMessage(IntPtr hWnd, UInt32 Msg, UInt32
wParam, Int32 lParam);
the return value and last two parameters then become the following in Win64:
[DllImport("User32.dll")]
internal static extern Int64 SendMessage(IntPtr hWnd, UInt32 Msg, UInt64
wParam, Int64 lParam);
How would you then declare this in code so that it works in both
environments. Do I have to #define my own WIN32 constant for instance and do
a conditional compile or is there a more mainstream way. Note that if I do
the latter then won't this conflict with the /platform compiler option
(assuming it's set to "anycpu"). Any insight would be welcome. Thanks.