ScreenToClient

[DllImport("user32.dll", SetLastError = true)]
public static extern bool ScreenToClient(
   IntPtr hWnd,
   ref POINT lpPoint
);

Microsoft documentation: Linkarrow-up-right

Last updated