Solved

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

Posted on 2006-11-09
6
441 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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 is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

914 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

12 Experts available now in Live!

Get 1:1 Help Now