Recycle bin properties set through registry- XP embedded

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Please let me know if there is some possible sol to the following query.

Is there any way to set Recycle bin properties-->global tab-->Display delete
confirmation dialog(check box -checked) through registry key ?

Thanks in advance.
Maria
 
Hi,

Please let me know if there is some possible sol to the following query.

Is there any way to set Recycle bin properties-->global tab-->Display delete
confirmation dialog(check box -checked) through registry key ?

Thanks in advance.
Maria

The setting is saved in a binary value containing other parameters as well.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer

Value ShellState is for example:

24 00 00 00 37 A8 00 00 ....

The fifth byte contains this setting: 33 = confirmation on, 37 = off.
It's a bitmap, where bit 3 (0000 0100 binary) is the one you want.

The other bits control other settings, for example 0100 0000 = Active
Desktop on/off (called "lock web items on desktop" in XP).

Show desktop icons on/off = bit 0001 0000 of the next byte.


After changing it directly in the registry, explorer (the shell instance)
has to be restarted before it takes effect.
 
Or, in case the value gets set to default when the user account is created (up to testing), you can use SHGetSetSettings API
(SSF_NOCONFIRMRECYCLE mask, bSet=True).

KM
 
Back
Top