ScreenToClient

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

Microsoft documentation: Link

Last updated