EndBufferedPaint

[DllImport("uxtheme.dll", SetLastError = true)]
public static extern HRESULT EndBufferedPaint(
   IntPtr hbp,
   bool fUpdateTarget
);

Microsoft documentation: Link

Last updated