Below is an extract of some code I am using to simulate key presses via the SendInput API. This works correctly if I set my application to compile for an x86 CPU, but doesn\
dwExtraInfo is a pointer. Therefore, it needs to be 4 bytes wide in 32-bit code and 8 bytes in 64-bit code.
dwExtraInfo
To do that in C#, use IntPtr (not uint, which is always 4 bytes)
IntPtr
uint