Closed GuruGurra closed 1 year ago
According to Microsoft documentation, SetCursorPos is defined as:
BOOL SetCursorPos( [in] int X, [in] int Y );
Since MouseMove and your P/Invoke signature for SetCursorPos are using uint, it is impossible to set negative positions.
According to Microsoft documentation, SetCursorPos is defined as:
BOOL SetCursorPos( [in] int X, [in] int Y );
Since MouseMove and your P/Invoke signature for SetCursorPos are using uint, it is impossible to set negative positions.