カーソルの現在のスクリーン座標の取得
Declare Function GetCursorPos lib "user32.dll" _
(lpPoint As POINTAPI) As Long
Declare Function GetCursorPos lib "user32.dll" _
(lpPoint As POINTAPI) As Integer
BOOL GetCursorPos(
LPPOINT lpPoint
);
引数
lpPoint
(戻り値)カーソルの位置を受け取るPOINTAPI構造体(スクリーン座標)戻り値
正常終了のとき 0以外
エラーのとき 0