registry

Which has the greater precedence: Windows Group Policy or Registry Keys

Hi, Say there is a group policy that prevents the user from using the "run" command in Windows. What would happen if there was a registry key that contradicted this i.e. allowed the user to use the run command? Would the user be able to use "run" or not? Thanks a lot for any answer! ...

Associating file extensions with a program

I get how to do it, and i have been to http://www.codeproject.com/KB/vb/VBFileAssociation.aspx before. My question is about what doing that does, is it possible to reverse it? What if you do not know where your program will be, and you are just testing it for now? Is there any way for it to "find" your program, or an easy way to edit whe...

How to share windows registry on remote machine?

Hello, Is it possible to share windows registry on remote machine? Or we can keep in synch two machines windows registry. Please help.. Kartik ...

How to Read Remote Registry Keys?

I need to be able to read the values in a specific Registry Key from a list of Remote Computers. I can do this locally with the following code using Microsoft.Win32; RegistryKey rkey = Registry.LocalMachine; RegistryKey rkeySoftware=rkey.OpenSubKey("Software"); RegistryKey rkeyVendor = rkeySoftware.OpenSubKe...

Programmatically enable ClearType in Windows Mobile

For our Windows Mobile application I want to enable the ClearType option on the device. According to this article on MSDN it should be done be setting the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\GDI\Cleartype But nothing happens after setting this particular key. Even a soft reset does not enable it, but simply gets rid of t...

Why is my DLL failing to register?

I am building a project in VS2005 and several of my DLLs are failing to register. The error message I am getting in Visual Studio is: Project : error PRJ0019: A tool returned an error code from "Registering ActiveX Control..." which is nicely vague. When I register the DLL manually through the command line (using regsv32.exe, I g...

backup reg hives

Using http://support.microsoft.com/kb/240184 I'm able to open SAM, SOFTWARE, SYSTEM reg hives, but I do not know the next step to get them copied in a different backup folder? I get Access Denied when I try to use BackupRead API. Any help is much appreciated! ...

How to pop-up the Windows context menu for a given file using Delphi?

Hi, I want to write the following procedure / function: procedure ShowSysPopup(aFile: string; x, y: integer); Which will build and show (at the coordinates x and y) the right-click shell menu which one sees in the Windows Explorer for the given file. I'm not so interested in the 'showing' part but more in how one can build such a men...

DLL self-registration: how to register just for the current user?

I'm using Visual C++. I'd like to really only have the DLL registered for the current user, even if the users is an administrator. For that reason, I changed all of the project.rgs references to HKCR. But, using Process Monitor while using regsvr32 to register the DLL, I notice that it still tries to create HKCR\TypeLib\{ ... }. This ha...

List of installed programs/updates that can be uninstalled

I know that all installed programs and updates can be found at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall key in the registry. But how can I differentiate between installed programs and installed updates? ...

Error re-creating registry key that I just deleted.

After deleting a registry key, I try to re-create it, in C#. I sometimes get the error: "Illegal operation attempted on a registry key that has been marked for deletion." I tried putting in a delay before re-creating it, but didn't help. Any tips? ...

Get write access to local_machine\software in the registry for .net application

I am trying to change the friendly name of a USB sound card. I can don't it from windows as well as edit the registry location using regedit. But I get an exception when I try to open the subkey for write access. Is there any way to get around this. For now my work around is to build the correct registry import file and run that, b...

Finding out what Registry keys have been changed C#

Hello, I'm currently in the process of developing and researching the feasibility of creating a small application to monitor personal preference changes within the registry. Where I've just started working are using mandatory profiles on the users meaning personal preferences aren't saved. The idea of this project is to monitor person...

Why does the Windows registry exist?

Hi, this is more OS architecture question than programming directly, but still. Why was the Windows registry created as a completely separate subsystem for storing system/application settings? In *nix OS'es there is /etc directory which is perfectly understandable, as filesystem is a natural hierarchical way for storing settings, while...

Where can I set path to make.exe on Windows?

When I try run "make" from cmd-console on Windows, it runs Turbo Delphi's make.exe but I need MSYS's make.exe. There is no mention about Turbo Delphi in %path% variable, maybe I can change it to MSYS in registry? Please, help. ...

Perl's TieRegistry and Windows Server 2008 R2

Hi, We have a Perl program that ran well on all Windows platforms so far. When we tried it on the newly released Windows Server 2008 R2, it stopped working. Investigation revealed that the problem is that calls to read registry values using TieRegistry returned undefined values. Is this a known problem? Did anyone run into a problem a...

MIDP 2.0 push registry

We would like to use MIDP2.0 push registry to invoke our MIDLet at reguler interval to check for new messages from server. If another MIDLet is already runnning in the foreground will our MIDLet be able to be invoked simultaneously? Will the behaviour vary from device to device (e.g. Nokia S-60, Motorola, Samsung, LG)? ...

How do I ask for an elevation for Registry access to HKLM?

How do I ask for an elevation for Registry access to HKLM? I'd like to add EnableLinkedConnections to "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\". I also don't want to use a manifest file. Ive tried the below code but it doesn't seem to help. RegistryPermission f = new RegistryPermission( RegistryP...

Programmatically move registry keys...

Hello, Does anyone know how I can programmaically move a registry from HKEY_LOCAL_MCAHINE to HKEY_CURRENT_USER? I wrote a recursive function that uses RegEnumKeyEx and RegEnumValue, but it appears that RegEnumValue returns all of the values under the top level key. For example, if the key is HKEY_LOCAL_MACHINE\SOFTWARE\MyApp\KeyName1 ...

When should I register my COM interface in HKCR\Interface?

Turns out there's a HKCR\Interface subtree where I can register my newly introduced COM interface. As I get it I would need it in two cases: if I want to enable marshalling - then I can register proxy/stub there if I want to publish more information on my component so that other developers could lookup the interface id and find it's hu...