Solved

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

Posted on 2006-11-09
6
440 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 500 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Ivo
Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now