EndBufferedAnimation

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

Microsoft documentation: Link

Last updated