win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinSetPointerPos (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINPOINTERS
 
BOOL WinSetPointerPos(hwndDesktop, x, y)
HWND hwndDesktop;    /* handle of the desktop */
SHORT x;             /* horizontal position   */
SHORT y;             /* vertical position     */
 
The WinSetPointerPos function sets the mouse pointer position.
 
Parameter    Description
────────────────────────────────────────────────────────────────────────────
 
hwndDesktop  Identifies the desktop window. This parameter can be
             HWND_DESKTOP or the desktop window handle.
 
x            Specifies the x position of the pointer (in screen
             coordinates).
 
y            Specifies the y position of the pointer (in screen
             coordinates).
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs.
 
See Also
 
WinQueryPointerPos