User32GetMessagePos Method

Retrieves the cursor position for the last message retrieved by the GetMessage(NativeMessage, IntPtr, UInt32, UInt32) function.

To determine the current position of the cursor, use the GetCursorPos(NativePoint) function.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", ExactSpelling = true)]
public static uint GetMessagePos()

Return Value

UInt32
The return value specifies the x- and y-coordinates of the cursor position.

The x-coordinate is the low order short and the y-coordinate is the high-order short.

Remarks

See Also