My Windows CE handheld devices (Motorola / Symbol) have folders named \ Software \ Microsoft \ Windows CE Services under HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE.
HKEY_CURRENT_USER has only one entry "DeviceFriendlyName"; the device is read by the device because the device is marked in Windows Explorer with this key value.
However, what about HKEY_LOCAL_MACHINE? It contains many more keys, such as ExcludeExts, FileSyncPath, GuestOnly, and <c.
Why does \ Software \ Microsoft \ Windows CE Services exist in two different places in the registry, and both are read by the device?
There are questions regarding whether the values that I have in the ExcludeExts key (namely: lnk, tmp, cdb, mdb, sdf, sqlite) under HKEY_LOCAL_MACHINE are respected (we do not want files with these extensions to be transferred between the device and the PC to which it is connected).
As it often happens, it works on my machine (sdf files are no longer synchronized on my dev machine), but the testing department says that it does not work for them - sdf files are still placed in "C: \ Users \ rompecabeza \ Documents \ Documents on Rompecabeza Device "on the PC.
From what I'm compiling, registry values are probably not case sensitive, but of course I changed this code:
RegistryKey key =
Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Microsoft\Windows CE
Services");
if (key != null)
{
key.SetValue("GuestOnly", 00000001, RegistryValueKind.DWord);
key.SetValue("ExcludeExts", "lnk,tmp,cdb,mdb,sdf,sqlite",
RegistryValueKind.String);
}
... to that:
RegistryKey key =
Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Microsoft\Windows CE
Services");
if (key != null)
{
key.SetValue("GuestOnly", 00000001, RegistryValueKind.DWord);
key.SetValue("ExcludeExts",
"lnk,tmp,cdb,mdb,sdf,sqlite,LNK,TMP,CDB,MDB,SDF,SQLITE",
RegistryValueKind.String);
}
As already noted, it already worked on my machine, in any case, even earlier (perhaps redundantly), the upper part of the extensions.
/; , Symbol 3090 Motorola 3190; CE 5.0.1400, 6.0.0
- sdf dev (IOW, , , ).
: :
RegistryKey key2 =
Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Microsoft\Windows
Services");
if (key != null)
{
key.SetValue("GuestOnly", 00000001, RegistryValueKind.DWord);
key.SetValue("ExcludeExts"
|"lnk,tmp,cdb,mdb,sdf,sqlite,LNK,TMP,CDB,MDB,SDF,SQLITE
RegistryValueKind.String);
}
... ( "LocalMachine" "CurrentUser" ) ( /vals HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER)?
(HKEY_LOCAL_MACHINE):

UPDATE
, - ; . , , -, .
2
: , , "Windows CE" , :
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows CE Services <= It has one registry key, "DeviceFriendlyName"
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services <= several (7) registry keys
HKEY_LOCAL_MACHINE\Windows CE Tools <= It has one registry key, "Platform"
HKEY_LOCAL_MACHINE\Windows CE Services <= it empty
? WindowsCE ( ) ?
3
. .