I want to use the SendInput function (winuser.h) to simulate huge amounts of inputs. I have no idea tho what the maximum input array length is.
I checked the docs, but I can't find anything there:
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput
UINTso, theoretically, that sets the max. But I would just check the return value, which tells you how many were sent. Do that in a loop till all are sent.UINTwhich specifies the number of inputs. The maximum value that aUINTcan represent is4,294,967,295. However, the keyboard and mouse input streams probably have some kind of limit, so it is probably unlikely that you will be able to insert that many events. These limits may be different in different versions of the operating system. For this reason, you should rely only on the return value of the functionSendInputin order to determine how many events were successfully inserted.