GetCursorPos function (winuser.h) - Win32 apps | Microsoft Docs Retrieves the position of the mouse cursor, in screen coordinates. https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getcursorpos
SetWindowPos function (winuser.h) - Win32 apps | Microsoft Docs Changes the size, position, and Z order of a child, pop-up, or top-level window. These windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order. https://docs.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-setwindowpos