SendInput and 64bits

Further to the error that SLaks identified, your remaining problem is that the size of INPUT is incorrect. This means that SendInput fails since it receives a parameter of type INPUT[]. You can’t specify the size with StructLayout(LayoutKind.Explicit, Size = 28) since you want code that handles both x86 and x64. This all stems from … Read more