i need to save this in the registry -----> EditFlags REG_Binary 00 00 01 00

i need to save this in the registry -----> EditFlags          REG_Binary    00 00 01 00

c# please
joshuadavidleeAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ozymandiasConnect With a Mentor Commented:
RegistryKey rk = Registry.LocalMachine;
                  RegistryKey key = rk.CreateSubKey(@"Software\__MyTestApp");
                  string valuename = "EditFlags";
                  key.SetValue(valuename,new byte[]{00,00,01,00});
                  key.Close();
                  rk.Close();
0
 
ozymandiasCommented:
You cannot control how the registry will store values that are passed using SWetValue and the registry type is interpreted from the object that is passed as the second argument.
However, an array of bytes will be stored as REG_BINARY.
0
 
joshuadavidleeAuthor Commented:
thanks, thats the key required if u have an app associated with a certain file extension and when someone clicks the file in IE it will automatically launch your app without popping up any boxes like save as or anything

like .rm for realplayer etc
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
ozymandiasCommented:
Sorry, is that a question ?
0
 
joshuadavidleeAuthor Commented:
nope it worked just fine, i tested it in IE also and it behaved correctly
0
 
ozymandiasCommented:
Oh, Good :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.