set error icon using cloud API

Jojo Tang 唐仕珊 41 Reputation points
2022-07-28T07:45:41.507+00:00

Hi,
I use CF_PIN_STATE to set file status. But the type cannot find error state.
typedef enum CF_PIN_STATE {
CF_PIN_STATE_UNSPECIFIED = 0,
CF_PIN_STATE_PINNED = 1,
CF_PIN_STATE_UNPINNED = 2,
CF_PIN_STATE_EXCLUDED = 3,
CF_PIN_STATE_INHERIT = 4 // set only
} CF_PIN_STATE;

how to set error state like onedrive??
225711-erroricon.png

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,427 questions
0 comments No comments
{count} votes

Accepted answer
  1. Xiaopo Yang - MSFT 11,501 Reputation points Microsoft Vendor
    2022-07-28T08:13:29.663+00:00

    Hello,

    Welcome to Microsoft Q&A!

    According to the Question which has the similar requirement, You need to set PKEY_LastSyncError property on a Shell item object(SHCreateItemFromParsingName ).

    Thank you.


    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.


0 additional answers

Sort by: Most helpful