tagINPUT and SendInput
typedef struct tagINPUT {
DWORD type;
union {
MOUSEINPUT mi;
KEYBDINPUT ki;
HARDWAREINPUT hi;
};
} INPUT, *PINPUT;

UINT SendInput(
UINT nInputs, // count of input events
LPINPUT pInputs, // array of input events
int cbSize // size of structure
);


If someone could please show me how to use these two api's calls that would be great. Im new at using api w. C and still
trying to get the hang of this>

I know the sendinput takes an argument of the array tagINPUT.
But im not exactly sure how to fill the values of tagINPUt.
I see the INPUT and *PINPUT after the structs but unsure
How to plug them in>

Any help would be great.
Thank you