Search code examples
c++winapicom

How can I determine the true result of Folder.CopyHere?


I'm copying a folder using Folder.CopyHere, and this method returns S_OK even when the user aborts the process.

Is there any way at all of finding out if the user aborted?


Solution

  • Ok, so the answer seems to be that it's not possible to get the true result from Folder.CopyHere, and the solution is to instead use the IFileOperation interface, as suggested by IInspectable.