how to use sendinput function

I have no idea about what parameters are inputted even though I saw the sendinput function from msdn.

UINT WINAPI SendInput(
_In_ UINT nInputs,
_In_ LPINPUT pInputs,
_In_ int cbSize
);

What do parameters above mean and what do I need to create for them?
Also, type, ki.wScan, ki.time, ki.dwExtraInfo, ki.wVk, ki.dwFlags
What do bojects above mean and is there any other objects that may be frequently uesd?
To understand what each parameter means u'll have to search each one separately on MSDN...

A great documented example to get u started :)
http://batchloaf.wordpress.com/2012/04/17/simulating-a-keystroke-in-win32-c-or-c-using-sendinput/
Topic archived. No new replies allowed.