Setting status icon to excluded with the CFAPI
12:56 19 Mar 2026

I am writing a one drive-like application using the CFAPI. I am trying to figure out how to set the Status icon to the Error state and to the Excluded state. Both have proven to be very difficult. The article below provided the solution for the Error state. (Even claude couldn't figure out how to do it until i pointed it to this article).

Setting Status icon for CFAPI does not work as expected

I have had no luck setting the status to the Excluded icon. Is it even possible and if so, does anyone have any sample code or tips for how to do so? I'm assuming it is possible because Dropbox has been able to do it as well.

The screenshot shows the icon we are trying to display for an excluded file.

enter image description here thanks in advance for any tips.

windows winapi windows-shell minifilter