title: Win32 app suspends on minimize window animation
body: <p>first time poster here.</p>
  
  <p>I'm writing a multi-threaded streaming audio application in C++ (MSVC) on Windows XP SP2.</p>
  
  <p>The problem I've encountered is that, upon minimizing / restoring any application on the task bar, all threads in my application are suspended while the window animation is active. This affects me because it causes the audio in my application to stutter everytime a window is minimized or restored.</p>
  
  <p>Unchecking the check box titled "Animate windows when minimizing an maximizing" in the windows / system properties / advanced / performance "visual effects, processor scheduling, ..." / Settings / Custom tab seems to resolve this issue.</p>
  
  <p>Adjusting the priority of my process to "High" and "Realtime" do not help.</p>
  
  <p>Can anyone help shed some light on this topic?</p>