Hi,
Welcome to Microsoft Q&A!
According to the Doc: CF_OPERATION_PARAMETERS structure
DUMMYUNIONNAME.TransferData.CompletionStatus
Status for transferring data. Set to
STATUS_SUCCESS
if the sync provider will transfer data to a placeholder.
Any status code returned outside of STATUS_CLOUD_FILE_ range except for STATUS_SUCCESS
will be converted to STATUS_CLOUD_FILE_UNSUCCESSFUL
by the platform.
I suggest you could try to use the STATUS_CLOUD_FILE_ACCESS_DENIED
instead of STATUS_ACCESS_DENIED
.
For more details I suggest you could refer to the similar thread: https://learn.microsoft.com/en-us/answers/questions/280676/change-error-message-when-canceling-delete-operati.html
Best Regards,
Jeanine
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.