Re: Strange Registry behaviour



When you use ReadRegistryFromOEM/WriteRegistryToOEM, each time you do a
write, the order in which keys and values in your registry will be
enumerated is reversed. There must be some order-dependent code somewhere
in there. When A appears in the enumeration before B, all is well; when B
appears before A, there is a problem.

I haven't used the RAM-based registry storage method in CE5, so I'm not sure
if this is an obvious error or if there might be some other situation that
you have created that is also a contributing factor. The best I can suggest
is to debug the shell's creation and display of the desktop window to make
sure that it is doing what you expect in each situation. You have the code
in PUBLIC/SHELL, etc.

Paul T.

"Albert" <email@xxxxxxxxxx> wrote in message
news:eKtVHPEMIHA.748@xxxxxxxxxxxxxxxxxxxxxxx
After saving the registry, and rebooting, my Desktop ICONs have
disappeared.
I save the registry again, reboot and they're back....they toggle between
being there and not being there each time I save and reboot.

Using a registry editor, they're always listed under HKLM\Explorer\Desktop

{000214A1-0000-0000-C000-000000000046} Recycle Bin
{000214A0-0000-0000-C000-000000000046} My Device


If I edit the keys, then edit them back again and refresh the desktop, the
ICONs appears.


Looks like the regitry being restored ok....every other save works ok, and
even when it doesn't work I can get it to work without any changes (ok I
change it, then put it back) and refresh the desktop.


Any ideas?

I am using ReadRegistryFromOEM / WriteRegistryToOEM but I'm as sure as I
can be that I'm not losing any date in the way this is being done.


Using CE5.0 on an x86 platform.


Thanks for any help.



.



Relevant Pages

  • Re: XP x64 Registry Reflection confusion
    ... If I were to implement this feature "don't show reflected keys in regedit", I would just not return their names from an enumeration via RegEnumKeyEx. ... By enumerating keys, you won't see the keys, but you can open them which means you need to have a-priori-knowledge about the existence of a reflected key. ... regarding the registry and wow64: ... The API simply says if someone set disable reflection on the key. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: SMS 2.0 Component Errors - Pre Upgrade
    ... It's possible that the registry is corrupt, ... The other suggestion is try an upgrade instead of site reset. ... ACLRESET will fix the permissions but will not fix the keys. ... SMS Inventory Data Loader has moved this file to ...
    (microsoft.public.sms.admin)
  • Re: Non admin users cant do things they need to do
    ... You mean they are along with the registry entires? ... i added the keys below to the registry (as administrator) logged off, ... can set the time then they can fake out system event logs by changing ...
    (microsoft.public.windowsxp.embedded)
  • Re: 0x80070005 Installation Failure message
    ... I wonder why Microsoft ... it had different permissions than other ... Before you modify the registry, ... > one or more registry keys could not be deleted ...
    (microsoft.public.windowsupdate)
  • Re: Malwarebyte Anti-Malware finds many trojans, while others .... why?
    ... malware is known to alter. ... modified policy keys in place, ... Most users don't know what those registry ... MBAM doesn't alert on me for those changes. ...
    (alt.comp.anti-virus)