How to see if CfReportSyncStatus works?

Diakov Dmytro 1 Reputation point
2020-12-19T13:01:12.363+00:00

Using CfReportSyncStatus does not provide any result. It returns S_OK HRESULT (as mentioned in decumentation it means that operation is success). But I cannot see any result in Windows Explorer.
I am using Windows 10.
I am using the next code:

uint descLen = (uint)(message.Length + 1) * 2;

var ss = new CF_SYNC_STATUS { StructSize = (uint)Marshal.SizeOf<CF_SYNC_STATUS>() + descLen, Code = (uint)code, DescriptionLength = descLen };

var mem = new SafeHGlobalHandle(Marshal.SizeOf<CF_SYNC_STATUS>() + descLen);

mem.Write(ss);

StringHelper.Write(message, ((IntPtr)mem).Offset(Marshal.SizeOf<CF_SYNC_STATUS>()), out _, true, CharSet.Unicode, descLen);

`CfReportSyncStatus(Engine.Path, mem);

`

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,411 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Drake Wu - MSFT 991 Reputation points
    2020-12-22T02:20:18.963+00:00

    Hi, @Diakov Dmytro According to the Remarks:

    ...the information will be remembered on the sync root,... The platform will query this information upon any failed operations on a cloud file placeholder...


    If the answer is helpful, please click "Accept Answer" and upvote it.
    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.