Share via

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 development | Windows API - Win32
0 comments No comments

Answer accepted by question author

Xiaopo Yang - MSFT 12,736 Reputation points Microsoft External Staff
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.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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