PDA

View Full Version : dumb registry question



slafta
02-17-2007, 07:46 PM
is regedit when exported it looks like this:

[HKEY_CURRENT_USER\Software\Project]
@="path"

in windows the @ is a default value within regedit, however this syntax fails:

test = Registry.GetValue(HKEY_CURRENT_USER, "Software\\Project", "@", true);

since the litteral name is not @

any ideas would be appreciated.

slafta
02-17-2007, 07:57 PM
nevermind, in window the default system variable is represented as a NULL character, looking for value "" returns default value... Sorry Guys.

bule
02-18-2007, 06:11 AM
It's always good to ask...