>>641
Windows Terminal Serverみたいにローカルデスクトップセッションと
リモートデスクトップセッション(複数)で区別するようになったのかな
セキュリティ的には望ましいけどね

前と変わってないと思うけどこの注意書きを忠実に実行してみては

SetCursorPos function (winuser.h)

The calling process must have WINSTA_WRITEATTRIBUTES access to the window station.

The input desktop must be the current desktop when you call SetCursorPos. Call OpenInputDesktop to
determine whether the current desktop is the input desktop. If it is not, call SetThreadDesktop with
the HDESK returned by OpenInputDesktop to switch to that desktop.