0

hi,

I need a method for C# to retrieve one default key from an application in the following directory

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\xxx_program

Can anyone suggest any code which I can use

Edited by Bulmung: n/a

1
Contributor
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Bulmung
0

just adding to this, this is kinda what I found ... not sure its correct.

public string getkey(string Key)
        {
            RegistryKey masterKey = Registry.LocalMachine.CreateSubKey(Key);
            if (masterKey == null)
            {
            }
            else
            {
               return masterKey.GetValue(default);
            }
            masterKey.Close();
        }
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.