title: How do I get CopyFileEx to report back so I can cancel a file copy operation?
body: <p>I’m trying to use the <code>FileUtilities.CopyFile</code> wrapper for <code>CopyFileEx</code> from <a href="http://msdn.microsoft.com/en-us/magazine/cc163851.aspx" rel="nofollow noreferrer">here</a> . But the <code>CopyFileCallbackAction</code> doesn’t get called until after the file is copied (I’ve tried copying a large file). How do I get it to report back so I can cancel the copy if the user so wishes?</p>
  
  <p>EDIT:</p>
  
  <p>See <a href="https://stackoverflow.com/questions/8393336/why-is-fileutilities-copyfile-wrapper-for-copyfileex-interfering-with-winforms">Why is FileUtilities.CopyFile wrapper for CopyFileEx interfering with winforms?</a> </p>