LockWindowUpdate

[DllImport("user32.dll", SetLastError = true)]
public static extern bool LockWindowUpdate(
   IntPtr hWndLock
);

Microsoft documentation: Link

Last updated