SetWindowRgn

[DllImport("user32.dll", SetLastError = true)]
public static extern int SetWindowRgn(
   IntPtr hWnd,
   IntPtr hRgn,
   bool bRedraw
);

Microsoft documentation: Link

Last updated