registry

Which Branch[es] of the Registry does a CE Device Read?

梦想与她 提交于 2019-12-23 13:05:16
问题 My Windows CE (Motorola/Symbol) handheld devices have folders named \Software\Microsoft\Windows CE Services below both HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE. HKEY_CURRENT_USER only has one entry, "DeviceFriendlyName"; it is read by the device, as the device is labeled in Windows Explorer with that key's value. However, what about HKEY_LOCAL_MACHINE? It contains many more keys, such as ExcludeExts, FileSyncPath, GuestOnly, &c. Why is there a \Software\Microsoft\Windows CE Services in two

Setting a DWORD value in the registry

蹲街弑〆低调 提交于 2019-12-23 10:55:32
问题 I'm trying to set a DWORD value in the registry. I made it work with a text value, but now I want to set another value with a numeric one(0). But it doesnt write it. This is my code: RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\pager", 0, KEY_ALL_ACCESS, &hKey); RegSetValueEx(hKey, TEXT("Save"), 0, REG_SZ, (const BYTE*)0x00, sizeof(DWORD)); RegCloseKey(hKey); PS: the key already exist with the value 1 so I'm trying to overide it with the value 0(I'm not creating a new one). 回答1: The biggest

Get XP to automatically “press” the default button on a dialog box

无人久伴 提交于 2019-12-23 05:41:32
问题 Some time ago, I came across an online article that described how to configure Windows XP to automatically accept the default option on a dialog box. As I (vaguely) recall, it was some sort of oddball registry configuration that did this, and it amazingly worked. Yeah - it's dangerous, but it would be very helpful right now with a problem where I'm trying to run Windows XP in an unattended situation. I'm trying to suppress any kind of interaction. So if you can point me to the magic

Going over all user profiles during installation

一笑奈何 提交于 2019-12-23 04:54:06
问题 I'm creating a Windows application that needs to add an entry to the Send-To explorer context menu, and needs to do so for all users. Since the Send-To folder is specific for each user, with no common folder for all users, I'm left with two choices: I can go over all user profiles, as well as the default user profile, find the SendTo folder and add the shortcut to it. This will ensure the shortcut is deleted during uninstall. Or, I can make sure the shortcut is in the SendTo folder each time

Create context-menu entries for a given extension

蓝咒 提交于 2019-12-23 04:50:07
问题 It is possibe to create context menu entries for Window's File Explorer for all files by creating registry entries such as [HKEY_CLASSES_ROOT\*\shell\kdb-test] @="Test (*,kdb-test)" [HKEY_CLASSES_ROOT\*\shell\kdb-test\command] @="cmd.exe /c type %1 & pause" It is also possible to create them for a given extension by replacing \* \ by \.extension\ . However, I have found that the latter doesn't work reliably. For instance, [HKEY_CLASSES_ROOT\.regshelltest\shell\kdb-test] @="Test (.regshelltest

Custom protocol in Chrome not working as expected

扶醉桌前 提交于 2019-12-23 04:47:22
问题 My register file looks like this (Exoscape.reg): Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\exoscape-launcher] "URL Protocol"="\"\"" @="\"URL:ExoScape-Launcher Protocol\"" [HKEY_CURRENT_USER\Software\Classes\exoscape-launcher\DefaultIcon] @="\"Launcher.jar,1\"" [HKEY_CURRENT_USER\Software\Classes\exoscape-launcher\shell] [HKEY_CURRENT_USER\Software\Classes\exoscape-launcher\shell\open] [HKEY_CURRENT_USER\Software\Classes\exoscape-launcher\shell\open\command] @="\

Changing the Shell registry

只愿长相守 提交于 2019-12-23 04:45:58
问题 At the start of my application i change the shell value of the registry to a custom shell and kill the explorer.exe (It is done outside the application), i want to allow a backdoor to return to the original shell and bring back the explorer.exe. brining the process back works fine for me but when i run my code to change the registry value no exception is thrown but the value doesn't change when i check in regedit, this is my code (saw it here on a different question) : RegistryKey regKey =

Windows registry keys for applications for all users in machine

蓝咒 提交于 2019-12-23 04:33:47
问题 If I install an application on windows XP and that application writes some keys to HKCU registry , then will those keys be copied to HKCU for other users? I tried installing one application and verified some keys getting created in HKCU. Now I logged in into another user and I can find same keys in HKCU for that user. Both the users were in same Administrator group. I repeated the same steps in VMWare image of windows xp but I was not able to find the registry keys in other users in vmware

Extending windows explorer context menu

孤者浪人 提交于 2019-12-23 03:41:51
问题 I'm having hard times figuring out why this doesn't work on my computer. I've read this article http://msdn.microsoft.com/en-us/library/bb776820.aspx and tried it, and it works for an unknown file type, but for know such as .bmp it doesn't - I've also deleted other keys under .bmp - didn't help. I've tried this in HKEY_CLASSES_ROOT.bmp and in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.bmp I need to implement this in my program so it has custom context menu

How to find Logical Name for PinPad XFS if it is not mentioned in Manual

醉酒当歌 提交于 2019-12-23 02:17:13
问题 I have started XFS implementation of SZZT Pinpad .I am facing an issue with the WFSOpen command Its giving an error “ – 14 “which is mentioned as WFS_ERR_HARDWARE_ERROR in the Manual. Please let us know if we are missing out on any parameter Value for the same . Also we are unable to find the logical Name for SZZT Pinpad in the Manual . As of now we are using the same name which is been mentioned in the Registry 回答1: I've had recently this problem. In my case, it was due to the service