>>>I'm using SHFileOperation to copy, delete and rename files, but when user cancel the operation, this function return the same value of succesfully operation.
>>>What can I do to know if user has canceled operation?
>>>
>>>Emerson Santon Reed
>>>emerson.reed@folhamatic.com
>>
>>fAnyOperationsAborted member of struct would have TRUE then.
>>PS: I dropped using this after I had problems under XP. Now I directly use winAPI.
>>Cetin
>
>What kind of problem did you encountered and what winAPI functions are you using instead?
SHFileOperation sometimes failed w/o no reason (yes no reason - doing same again succeeded if retry was done after some human noticable pause). Trying the operation for few times in a loop didn't help. Esxtended error was weird like 'File doesn't exist' - but funnily it did exist and retry succeeded.
I use CopyFile, DeleteFile, MoveFile APIs.
Cetin