I have my code like below
[DllImport("user32.dll", EntryPoint = "SendMessage")]
public static extern uint SendMessage(IntPtr hWnd, int unMsg, IntPtr wParam,
IntPtr lParam);
Fxcop error : "As it is declared in your code, the return type of P/Invoke 'SendMessage(IntPtr, int, IntPtr, IntPtr)' will be 4 bytes wide on 64-bit platforms. This is not correct, as the actual native declaration of this API indicates it should be 8 bytes wide on 64-bit platforms. Consult the MSDN Platform SDK documentation for help determining what data type should be used instead of 'uint'"
So to fix the above error do i need to change the return type UIntPtr ?
Please help me in fixing this and give me valid reasons.
Thanks, VMG