Thanks for reaching out !
- Correct Status Code: To show an error icon, you must use a STATUS_CLOUD_FILE_* error code in CompletionStatus. Using generic codes like E_FAIL will be converted to STATUS_CLOUD_FILE_UNSUCCESSFUL, which may not trigger the sync error icon.
- Generic codes like E_FAIL won’t trigger the icon.
- Make sure CfExecute is called on the correct thread with proper access.
We are suggesting a code to fix.
Update your code to use a more specific failure code like:
opParams.TransferData.CompletionStatus = STATUS_CLOUD_FILE_PROVIDER_NOT_RUNNING;
Or any other appropriate STATUS_CLOUD_FILE_* code depending on the failure scenario.
has context menu