GetCursorPos The GetCursorPos function retrieves the cursor’s position, in screen coordinates.
VB4-32,5,6
Declare Function GetCursorPos Lib "user32" Alias "GetCursorPos" (lpPoint As POINTAPI) As Long |
VB.NET
System.Windows.Forms.Cursor.Current.Position |
Operating Systems Supported |
Requires Windows NT 3.1 or later; Requires Windows 95 or later |
- lpPoint
Points to a POINT structure that receives the screen coordinates of the cursor. |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError. |
|