Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-11-09
6
Medium Priority
?
461 Views
Last Modified: 2012-08-13
i need to save this in the registry -----> EditFlags          REG_Binary    00 00 01 00

c# please
0
Comment
Question by:joshuadavidlee
  • 4
  • 2
6 Comments
 
LVL 15

Accepted Solution

by:
ozymandias earned 2000 total points
ID: 17905280
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
 
LVL 15

Expert Comment

by:ozymandias
ID: 17905289
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
 

Author Comment

by:joshuadavidlee
ID: 17905330
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 15

Expert Comment

by:ozymandias
ID: 17905357
Sorry, is that a question ?
0
 

Author Comment

by:joshuadavidlee
ID: 17905360
nope it worked just fine, i tested it in IE also and it behaved correctly
0
 
LVL 15

Expert Comment

by:ozymandias
ID: 17905394
Oh, Good :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question