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

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

c# please
Question by:joshuadavidlee
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 15

Accepted Solution

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});
LVL 15

Expert Comment

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.

Author Comment

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
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

ID: 17905357
Sorry, is that a question ?

Author Comment

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

Expert Comment

ID: 17905394
Oh, Good :)

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

628 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