Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Sets the position of the cursor in physical coordinates.
Syntax
BOOL SetPhysicalCursorPos(
[in] int X,
[in] int Y
);
Parameters
[in] X
Type: int
The new x-coordinate of the cursor, in physical coordinates.
[in] Y
Type: int
The new y-coordinate of the cursor, in physical coordinates.
Return value
Type: BOOL
TRUE if successful; otherwise FALSE.
Remarks
For a description of the difference between logical coordinates and physical coordinates, see PhysicalToLogicalPoint.
GetLastError can be called to get more information about any error that is generated.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| Target Platform | Windows |
| Header | winuser.h (include Windows.h) |
| Library | User32.lib |
| DLL | User32.dll |
| API set | ext-ms-win-ntuser-gui-l1-1-1 (introduced in Windows 8.1) |
See also
Conceptual
Reference