EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Sample code for setting custom icons

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
Posted: 10/25/2010 03:36:07
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44


I ran into the exact same problem. I tried replacing the dll (in Windows/system32 and Windows/SysWOW64) and rebooted. Now I get an exception on calling setIcon:

ErrorCode 193 : %1 ist keine zulässige Win32-Anwendung.

Posted: 10/25/2010 04:08:09
by Vladimir Cherniga (EldoS Corp.)

did you correctly place the x32 version in Windows/SysWOW64 folder and x64 version in Windows/system32 ?
Posted: 10/25/2010 08:31:06
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

No. I didn't. :-(

Copied the files to the correct place, rebooted and tried again. -> Explorer still shows the default icon.

Here is the output of ProcessMonitor:

15:31:39.4558820   explorer.exe   3712   RegOpenKey   HKLM\Software\VsMntNtf\DriveIconMappings   SUCCESS   Desired Access: Read
15:31:39.4559451   explorer.exe   3712   RegSetInfoKey   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings   SUCCESS   KeySetInformationClass: KeySetHandleTagsInformation, Length: 0
15:31:39.4559769   explorer.exe   3712   RegQueryValue   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings\(Default)   NAME NOT FOUND   Length: 144
15:31:39.4560094   explorer.exe   3712   RegCloseKey   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings   SUCCESS   
15:31:39.4561812   explorer.exe   3712   RegOpenKey   HKLM\Software\VsMntNtf\DriveIconMappings   ACCESS DENIED   Desired Access: Read/Write

Posted: 10/25/2010 10:46:23
by Vladimir Cherniga (EldoS Corp.)

Did you use the files attached to this thread for the tests ?
Posted: 10/26/2010 01:06:59
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

Yes. I just checked the version to make sure. It's
The version of the driver (cbfs.sys) is
Posted: 10/26/2010 04:11:05
by Vladimir Cherniga (EldoS Corp.)

Could you post the registry settings from HKLM\Software\VsMntNtf\DriveIconMappings path.
Posted: 10/26/2010 08:09:35
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44


Posted: 10/26/2010 10:51:20
by Vladimir Cherniga (EldoS Corp.)

Thank you for the information. I have attached a fixed version of the CbFsMntNtf3.dll, you may copy it manually to the target dir, but this version requires uninstalling previously installed icon, then install them again after reboot. In the case of any problems please post your ProcessMonitor log.

[ Download ]
Posted: 10/27/2010 04:46:11
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

It still wont work.

What I did:
1) Uninstall icon.
2) copy new dlls.
3) reboot.
4) install icon.
5) reboot.
6) Test setting icon. Here is the output from processMonitor:

11:35:58.0214252   explorer.exe   2708   RegOpenKey   HKLM\Software\VsMntNtf\DriveIconMappings   SUCCESS   Desired Access: Read
11:35:58.0214948   explorer.exe   2708   RegSetInfoKey   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings   SUCCESS   KeySetInformationClass: KeySetHandleTagsInformation, Length: 0
11:35:58.0215494   explorer.exe   2708   RegEnumKey   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings   SUCCESS   Index: 0, Name: 0
11:35:58.0216087   explorer.exe   2708   RegQueryKey   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings   SUCCESS   Query: HandleTags, HandleTags: 0x100
11:35:58.0216672   explorer.exe   2708   RegOpenKey   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings\0   SUCCESS   Desired Access: Maximum Allowed, Granted Access: Read
11:35:58.0217314   explorer.exe   2708   RegQueryValue   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings\0\StorageType   SUCCESS   Type: REG_DWORD, Length: 4, Data: 6
11:35:58.0218025   explorer.exe   2708   RegQueryValue   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings\0\IconPath   SUCCESS   Type: REG_SZ, Length: 18, Data: icon.ico
11:35:58.0218652   explorer.exe   2708   RegQueryValue   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings\0\IconIndex   SUCCESS   Type: REG_DWORD, Length: 4, Data: 0
11:35:58.0219214   explorer.exe   2708   RegQueryValue   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings\0\TmpIconPath   SUCCESS   Type: REG_SZ, Length: 98, Data: C:\Users\CHRIST~1\AppData\Local\Temp\ico92BB.tmp
11:35:58.0219787   explorer.exe   2708   RegQueryValue   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings\0\IconId   SUCCESS   Type: REG_SZ, Length: 12, Data: wuala
11:35:58.0220353   explorer.exe   2708   RegQueryValue   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings\0\CLSID   SUCCESS   Type: REG_SZ, Length: 78, Data: {89472C2E-0294-4F81-AAB8-8907223E7867}
11:35:58.0221037   explorer.exe   2708   RegCloseKey   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings\0   SUCCESS   
11:35:58.0221583   explorer.exe   2708   RegEnumKey   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings   NO MORE ENTRIES   Index: 1, Length: 288
11:35:58.0222149   explorer.exe   2708   RegCloseKey   HKLM\SOFTWARE\VsMntNtf\DriveIconMappings   SUCCESS   

I verified with processExplorer that the version of the loaded CbFsMntNtfs3.dll is

Explorer still shows the standard icon
Posted: 10/27/2010 05:23:51
by Vladimir Cherniga (EldoS Corp.)

Could you post the settings under
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers key
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.



Topic viewed 80399 times

Number of guests: 5, 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!