How do I get CopyFileEx to report back so I can cancel a file copy operation?
问题 I’m trying to use the FileUtilities.CopyFile wrapper for CopyFileEx from here . But the CopyFileCallbackAction 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? EDIT: See Why is FileUtilities.CopyFile wrapper for CopyFileEx interfering with winforms? 回答1: The edit to my question (sending to Why is FileUtilities.CopyFile wrapper for CopyFileEx interfering with winforms?) sends to