private LASTINPUTINFO lastInPut;
public Form1()
{
lastInPut = new LASTINPUTINFO();
lastInPut.cbSize = (uint)
System.Runtime.InteropServices.Marshal.SizeOf(lastInPut);
InitializeComponent();
}
Try again.
You might want to head to the library and get a good book for beginners; declaring variables is not difficult, but it's not a good idea to continue doing more complexer things without the basics.