EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Sample code for setting custom icons

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#14772
Posted: 10/25/2010 03:36:07
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

Hi

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.

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

Hi,
did you correctly place the x32 version in Windows/SysWOW64 folder and x64 version in Windows/system32 ?
#14782
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:

Code
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


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

Did you use the files attached to this thread for the tests ?
#14795
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 3.0.74.23
The version of the driver (cbfs.sys) is 3.0.78.176
#14803
Posted: 10/26/2010 04:11:05
by Vladimir Cherniga (EldoS Corp.)

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

[HKEY_LOCAL_MACHINE\SOFTWARE\VsMntNtf\DriveIconMappings]

[HKEY_LOCAL_MACHINE\SOFTWARE\VsMntNtf\DriveIconMappings\0]
"IconPath"="icon.ico"
"TmpIconPath"="C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\icoDAC9.tmp"
"IconId"="wuala"
"IconIndex"=dword:00000000
"CLSID"="{99A6C3CD-3DEE-462C-B3E9-3ACDB8FE1D6D}"
#14809
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 ]
#14814
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:

Code
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 3.1.80.35

Explorer still shows the standard icon
#14816
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
and
HKCR\CLSID\{89472C2E-0294-4F81-AAB8-8907223E7867}
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.

Reply

Statistics

Topic viewed 78758 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!