EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Sample code for setting custom icons

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#15080
Posted: 11/17/2010 05:59:59
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

Code
[1216] DllMain! g_SysBinaryPath =
[1216] C:\Windows
[1216]
[1216] CbFsMntNtf!ReadStorageMappings:  REGISTERED CLSID = 0
[1216] {72C3BA91-E208-4C6A-A8A7-3BEB92D9E84D}
[1216]
[1216] CbFsMntNtf!DllGetClassObject REFCLSID rclsid =
[1216] {5BB532A2-BF14-4CCC-86B7-71B81EF6F8BC}
[1216]
[1216] CbFsMntNtf!DllGetClassObject REFCLSID rclsid =
[1216] {2EA4E545-4964-41DE-A90B-BECD384CC0B2}
[1216]
[1216] CbFsMntNtf!DllGetClassObject REFCLSID rclsid =
[1216] {5FF49FE8-B332-4CB9-B102-FB6951629E55}
[1216]
[2056] DllMain! g_SysBinaryPath =
[2056] C:\Windows\SysWOW64
[2056]
[1144] DllMain! g_SysBinaryPath =
[1144] C:\Windows
[1144]
[1144] CbFsMntNtf!ReadStorageMappings:  REGISTERED CLSID = 0
[1144] {72C3BA91-E208-4C6A-A8A7-3BEB92D9E84D}
[1144]
[1144] CbFsMntNtf!DllGetClassObject REFCLSID rclsid =
[1144] {5BB532A2-BF14-4CCC-86B7-71B81EF6F8BC}
[1144]
[1144] CbFsMntNtf!DllGetClassObject REFCLSID rclsid =
[1144] {2EA4E545-4964-41DE-A90B-BECD384CC0B2}
[1144]
[1144] CbFsMntNtf!DllGetClassObject REFCLSID rclsid =
[1144] {5FF49FE8-B332-4CB9-B102-FB6951629E55}
[1144]
#15081
Posted: 11/17/2010 09:09:32
by Vladimir Cherniga (EldoS Corp.)

The attached binaries contains a bug fix refere to HKEY_CLASSES_ROOT\CLSID\{...} registry key. Uninstall the icons, then replace 32- and 64-bit dlls, install icon(s) and recheck that registry keys under HKEY_CLASSES_ROOT\CLSID\{"your icon clsid"} have InProcServer32 subkey. Then reboot and test the icons.


[ Download ]
#15086
Posted: 11/18/2010 03:02:48
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

Success!!!!!

The icon is finally there!
Thanks a lot.

When can I expect this to be in a new maintenance release?
#15088
Posted: 11/18/2010 09:28:10
by Eugene Mayevski (EldoS Corp.)

There will be a release of CBFS 3.1 available tomorrow or on weekends.


Sincerely yours
Eugene Mayevski
#15089
Posted: 11/18/2010 09:28:35
by Vladimir Cherniga (EldoS Corp.)

Ok, at last :)
Release version 3.1 will be available tomorrow.
#15124
Posted: 11/24/2010 11:39:48
by Eugene Mayevski (EldoS Corp.)

FYI: After a small delay version 3.1 has been released yesterday.


Sincerely yours
Eugene Mayevski
#15368
Posted: 12/23/2010 01:04:55
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

While it works now perfectly well on my machine, a colleague of mine still has the problem that he sees no customized icon. He's using the current release version (3.1) on Windows 7 Professional 64bits.

What do you need in order to debug this?

Thanks
christian
#15369
Posted: 12/23/2010 02:03:03
by Vladimir Cherniga (EldoS Corp.)

First of all you should check that dll was installed and loaded into the explorer process. Use "Process Explorer" for this case. Then you need to make sure that InstallIcon()/SetIcon() is invoked from the process with administrator rights, otherwise it will not add registry settings for custom icon. Do not forget to restart system after InstallIcon() call. If it doesn't help the dump of registry settings from HKEY_LOCAL_MACHINE\SOFTWARE\VsMntNtf may be useful. Also scan registry for GUID value in "CLSID"="{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" from DriverIconMappings registry section and check the entries under HLLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers
#15383
Posted: 12/28/2010 04:20:43
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

[HKEY_LOCAL_MACHINE\SOFTWARE\VsMntNtf\DriveIconMappings\0]
"IconPath"="C:\\Program Files (x86)\\Wuala CBFS\\icon.ico"
"TmpIconPath"="C:\\Users\\JONASN~1\\AppData\\Local\\Temp\\ico428F.tmp"
"IconId"="Wuala"
"IconIndex"=dword:00000000
"CLSID"="{46215AE6-6384-4D6A-9C14-6B53AFC619BC}"

There are no other entries with that CLSID.


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\EldosIconOverlay]
@="{5BB532A2-BF14-4CCC-86B7-71B81EF6F8BC}"
#15386
Posted: 12/28/2010 05:38:11
by Vladimir Cherniga (EldoS Corp.)

Seems that your colleague use an old version of helper dll. With my last changes it should be added "StorageType" parameter under [HKEY_LOCAL_MACHINE\SOFTWARE\VsMntNtf\DriveIconMappings\0] registry path during InstallIcon() procedure call.
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.

Reply

Statistics

Topic viewed 78998 times

Number of guests: 2, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!