I created a Form application in visual c#, that uses a function to generate mouse click, but i got the following error message:
A call to PInvoke function \'
In my case:
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.Winapi)] public static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);
did the trick.