How to show error icon when sync fails with cloud filter apis?
I am trying to create VFS using cloud filter APIs and want to implement error handling. In OnFetchData if we get any errors I want to show error icon in sync status. Can someone help what API should be called to achieve this functionality. I have tried below but no luck
CF_OPERATION_INFO opInfo = { 0 };
CF_OPERATION_PARAMETERS opParams = { 0 };
opInfo.StructSize = sizeof(opInfo);
opInfo.Type = CF_OPERATION_TYPE_TRANSFER_DATA;
opInfo.ConnectionKey = callbackInfo->ConnectionKey;
opInfo.TransferKey = callbackInfo->TransferKey;
opParams.ParamSize = CF_SIZE_OF_OP_PARAM(TransferData);
opParams.TransferData.CompletionStatus = E_FAIL;
opParams.TransferData.Buffer = nullptr;
opParams.TransferData.Offset.QuadPart = callbackParameters->FetchData.RequiredFileOffset.QuadPart;
opParams.TransferData.Length.QuadPart = callbackParameters->FetchData.RequiredLength.QuadPart;
auto hr = CfExecute(&opInfo, &opParams)