EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Custom Icon not working in 32bit OS

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#25793
Posted: 07/24/2013 14:33:01
by K San (Standard support level)
Joined: 02/06/2013
Posts: 5

Using the C++ sample code "VDisk" I cannot see the custom icon while in a 32bit OS. In a 64bit OS it displays just fine. I have tried numerous fresh install Win7/WinXP and they are all the same.

I can see the icon is installed properly in the registry and in the %temp% folder there is the ico*.tmp file.

Please advise on how to get this working. Thanks

Snippet of code:
CallbackFileSystem::Initialize(g_Guid);

BOOL reboot = 0;
CallbackFileSystem::InstallIcon(_T("icon.ico"),_T("Icon"),&reboot);

g_CbFs.CreateStorage();

g_CbFs.SetIcon(_T("Icon"));
#25794
Posted: 07/24/2013 14:43:35
by Vladimir Cherniga (EldoS Corp.)

What is the version of CBFS that was used in tests ?
#25795
Posted: 07/24/2013 14:45:57
by K San (Standard support level)
Joined: 02/06/2013
Posts: 5

Quote
Vladimir Cherniga wrote:
What is the version of CBFS that was used in tests ?


Using version 4.0.136.25, also tried the previous versions 135 and 134. Same results.
#25796
Posted: 07/24/2013 15:51:20
by Vladimir Cherniga (EldoS Corp.)

We will check this soon.
#25798
Posted: 07/25/2013 00:37:17
by Eugene Mayevski (EldoS Corp.)

Please ensure that you install helper DLLs (in particular MountNotifier, CBFSMntNtf4.dll) and that the system is restarted after installing.

For custom icons to work Explorer needs to load the helper DLL, and it can do the loading only when it's started.

Next, check (to be sure) that InstallIcon doesn't throw an exception.

Finally, try to restart the system again after successful call to InstallIcon.


Sincerely yours
Eugene Mayevski
#25799
Posted: 07/25/2013 01:01:46
by K San (Standard support level)
Joined: 02/06/2013
Posts: 5

I have triple checked to make sure all the modules are loaded. The same modules are loaded when ran in 64bit OS as in 32bit OS.

InstallIcon executes fine, icon*.tmp is created and registry settings are created. Can you provide a working sample of the VDisk or Mapper with a working custom icon in Windows 7 32bit?


Quote
Eugene Mayevski wrote:
Please ensure that you install helper DLLs (in particular MountNotifier, CBFSMntNtf4.dll) and that the system is restarted after installing.

For custom icons to work Explorer needs to load the helper DLL, and it can do the loading only when it's started.

Next, check (to be sure) that InstallIcon doesn't throw an exception.

Finally, try to restart the system again after successful call to InstallIcon.
#25800
Posted: 07/25/2013 01:14:43
by Eugene Mayevski (EldoS Corp.)

Unfortunately the sample won't help -- if your code works on 64-bit system, it should work on 32-bit system as well.

Let's narrow down the problem further. Did you try the code on one 32-bit system or on several systems? We need to figure out, what configurations don't work for you.


Sincerely yours
Eugene Mayevski
#25803
Posted: 07/25/2013 01:24:26
by K San (Standard support level)
Joined: 02/06/2013
Posts: 5

Yes we have tried several different machines. All running different Windows versions and different languages. The only pattern we saw was that it works fine under 64bit version of the OS.

These machines are actual desktop/laptop and also we have tested them in virtual OS environments. All clean installs with nothing install or updated.

Has anyone else come across this problem or had any success with the custom icon when using C++?
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 1448 times

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