title: How can I update a win32 app gui while it is waiting for another program to finish?
body: <p>I am currently using CreateProcess/WaitForSingleObject from within a win32 GUI app to launch a small GUI app that deals with software licensing issues. This all works fine, but it essentially hangs the "parent" app while it waits for the licensing app to finish its work. During this time, updates to the parent app do not occur and it ends up with ugly white squares if the utility app window is moved.</p>
  
  <p>Also, for some strange reason, while the utility app is running, if I <em>copy</em> something from within that app to the clipboard, it HANGS. I haven't figured out why yet, but it only happens if I am waiting for the app to finish from within the parent app.</p>
  
  <p>So I'm thinking that if I can cause the parent app to handle its events while waiting for my other app to finish, it might solve both problems.</p>
  
  <p>So, is there a replacement for CreateProcess/WaitForSingleObject that also handles UI updates?</p>