Hi, I'm trying to make a porgram that will simulate a mouse click. A lot of the answers that I found scouring the internet said use the SendInput API. I'm very new to API's and don't know much about them. I went to MSDN's website to look up how to do it and I was able to import the dll and declare the fuction, but I'm not sure how to implement it into my program.

http://msdn.microsoft.com/en-us/libr...10(VS.85).aspx

Code:
        [DllImport("User32.dll")]
        UINT SendInput(UINT nInputs, LPINPUT pInputs, int cbSize);
        private void button2_Click(object sender, EventArgs e)
        {

            SendInput(); //This is where I'm not sure what I'm supposed to do
            
        }
When I call the fuction, I'm not sure what I'm supposed to put for the parameters of it. Any help would be greatly appreciated.

Thanks in advance.