Display own icons when using Cloud Filter API

cgrom 26 Reputation points
2021-04-01T15:32:53.143+00:00

Hi,
we are developping a sync engine using Cloud Filter API where we'd like to provide the placeholder files with our own icons.
In the Cloud Mirror Sample the icons are selected from shell32.dll but with the comment:

// This icon is just for the sample. You should provide your own branded icon here

To achieve this we expanded a dll named ClientDriveCfApi.dll with our own icons. This dll is part of the solution (And at least I get our own icons offered in Windows Explorer when choosing this dll in a folder's context menu on Properties -> Customize -> Change Icon...)

To get an icon of our own displayed in our application we altered our code from

prop.IconResource(L"imageres.dll,-59");

that displayed the desired icon from imageres.dll to

prop.IconResource(L"ClientDriveCfApi.dll,-1");

for getting our own icon displayed.

But we only get the default icon displayed then.
How can we provide our application with our own branded icon?
Any help would be appreciated.

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,430 questions
{count} votes