EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Sample code for setting custom icons

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#14978
Posted: 11/08/2010 07:50:12
by Vladimir Cherniga (EldoS Corp.)

Do you get any progress ? The problem is in access rights when you running on Windows 7 with UAC enabled. You don't get admin rights even under administrator account if you don't specify explicitly to run your application with admin rights. This is a requirement for successful icon installation. Otherwise we cannot get access to the certain registry keys we need to modify.
#14980
Posted: 11/08/2010 09:36:13
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

Yes. I had opend a shell with admin priviledges, from where I run the installation. (The same way I installed the driver (cbfs.sys) which worked just fine.
#14981
Posted: 11/08/2010 09:47:20
by Vladimir Cherniga (EldoS Corp.)

Could you recheck icon installation, monitoring it with Process Monitor utility. What i am interested in, does InstallIcon() rise ECBFSError exception and does it have any permissions fault accessing HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ registry tree or any other registry values.
#14986
Posted: 11/09/2010 03:13:14
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

InstallIcon does not rise an exception.

Output from Process Monitor is attached.


[ Download ]
#14987
Posted: 11/09/2010 04:32:30
by Vladimir Cherniga (EldoS Corp.)

Now it is clear, you need 32-bit dll version, since you are installing icon from win32 app, you should put the attached dll into the Windows\SysWow64\ folder and reinstall the icon.


[ Download ]
#14999
Posted: 11/10/2010 04:48:19
by Vladimir Cherniga (EldoS Corp.)

Still no progress ?
#15001
Posted: 11/10/2010 09:03:23
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

Icon is still not shown. Process Monitor output is attached.


[ Download ]
#15006
Posted: 11/10/2010 12:48:01
by Vladimir Cherniga (EldoS Corp.)

I've change file version in order to make sure that proper binary file was used. Also information from DebugView would be very helpful to confirm the work. I have rechecked the issue locally with the same conditions and i have no idea except wrong file binary is used. Please recheck with attached one. It file version incremented (3.1.81.39). Thanks in advance.


[ Download ]
#15015
Posted: 11/11/2010 03:39:13
by Christian Schnidrig (Standard support level)
Joined: 10/25/2010
Posts: 44

Process Monitor output is attached.

DebugView during installIcon:

Code
[1908] InstallIcon!g_DllPathValid <> true

DebugView after reboot:

Code
[2784] NPGetCaps 2
[2784]   WNNC_NET_TYPE
[2784] NPGetCaps 4
[2784]   WNNC_USER
[2784] NPGetCaps 6
[2784]   WNC_CONNECTION
[2784] NPGetCaps 11
[2784]   WNNC_ENUMERATION
[2784] NPGetCaps 9
[2784]   WNNC_ADMIN
[2784] NPGetCaps 8
[2784]   WNNC_DIALOG
[2784] NPOpenEnum
[2784] querying device name A:
[2784] device name is \Device\Floppy0
[2784] querying device name C:
[2784] device name is \Device\HarddiskVolume3
[2784] querying device name D:
[2784] device name is \Device\CdRom0
[2784] NpEnumResource
[2784] NpCloseEnum
[1464] NPGetCaps 2
[1464]   WNNC_NET_TYPE
[1464] NPGetCaps 4
[1464]   WNNC_USER
[1464] NPGetCaps 6
[1464]   WNC_CONNECTION
[1464] NPGetCaps 11
[1464]   WNNC_ENUMERATION
[1464] NPGetCaps 9
[1464]   WNNC_ADMIN
[1464] NPGetCaps 8
[1464]   WNNC_DIALOG
[1464] NPOpenEnum
[1464] querying device name A:
[1464] device name is \Device\Floppy0
[1464] querying device name C:
[1464] device name is \Device\HarddiskVolume3
[1464] querying device name D:
[1464] device name is \Device\CdRom0
[1464] querying device name W:
[1464] device name is \Device\CbFs3Nr\;W:;0;0000000000010797;WINDOOF;Wuala
[1464] NpEnumResource
[1464] NpCloseEnum
[2784] NPOpenEnum
[2784] querying device name A:
[2784] device name is \Device\Floppy0
[2784] querying device name C:
[2784] device name is \Device\HarddiskVolume3
[2784] querying device name D:
[2784] device name is \Device\CdRom0
[2784] querying device name W:
[2784] device name is \Device\CbFs3Nr\;W:;0;0000000000010797;WINDOOF;Wuala
[2784] NpEnumResource
[2784] NpCloseEnum


[ Download ]
#15016
Posted: 11/11/2010 07:49:59
by Vladimir Cherniga (EldoS Corp.)

Thanks for info, the attached zip has fixes according to your log from DebugView. Use the attached 32-bit dll to reproduce the same steps as previous. Only DebugView log would be helpful.


[ Download ]
Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.

Reply

Statistics

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