User32GetCursorPos(Point) Method
Retrieves the position of the mouse cursor, in screen coordinates.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll")]
public static bool GetCursorPos(
ref Point refPoint
)
<DllImportAttribute("User32.dll">]
Public Shared Function GetCursorPos (
ByRef refPoint As Point
) As Boolean
Dim refPoint As Point
Dim returnValue As Boolean
returnValue = User32.GetCursorPos(refPoint)
public:
[DllImportAttribute(L"User32.dll")]
static bool GetCursorPos(
Point% refPoint
)
[<DllImportAttribute("User32.dll")>]
static member GetCursorPos :
refPoint : Point byref -> bool
No code example is currently available or this language may not be supported.
- refPoint Point
-
A pointer to a Point structure that receives the screen coordinates of the cursor.
Boolean
Returns
if successful or
otherwise.
To get extended error information, call
GetLastWin32Error.