How to show error icon when sync fails with cloud filter apis?

Srikar Kurapati 0 Reputation points
2025-06-04T07:03:29.4133333+00:00

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)

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,960 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.