question

cgrom-6970 avatar image
0 Votes"
cgrom-6970 asked SongZhu-MSFT commented

Display own icons when using Cloud Filter API

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
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

But we only get the default icon displayed then. So have you confirmed that the function call is successful? Can you provide more code information or error information to help us determine the problem?

0 Votes 0 ·

0 Answers