Get window position for setting mouse cursor position

Hi,

Is there a way to get the window position?

I can set my mouse position using a position but it is relative to the windows screen position not the windowed app position.

ie if I set the cursor to (10,10) it appears at (10,10) on my monitor not from the top left of my apps window.

What I want is to set the cursor to (10,10)+WindowPositionTopLeft

Or, failing that, is there a way to manipulate the mouse cursor inside Unity itself.

Cheers,
Bob

ok, I can see there is a way to get the window using the user32.dll but what is the name of the window? How is it set and is it different when running in the editor and standalone?

I have tried using my project name etc but it never finds a window