473,941 Members | 6,826 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing Registry Rights

I've got a general question.
Is it possible to change Registry of a registry Path by a procedure call or
something like that in .NET.

Feb 7 '06 #1
3 1323
Your question is frubasticated. What exactly are you asking?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Stephan Leppin" <Stephan Le****@discussi ons.microsoft.c om> wrote in message
news:67******** *************** ***********@mic rosoft.com...
I've got a general question.
Is it possible to change Registry of a registry Path by a procedure call
or
something like that in .NET.

Feb 7 '06 #2
Sorry I misstiped myself.
I want to change the acces rights (read, write etc.) for a specific
registrypath like
"\HKLM\Software \Company\develo pment".
My Question is how can I do this using the .Net Framework?.
"Kevin Spencer" wrote:
Your question is frubasticated. What exactly are you asking?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Stephan Leppin" <Stephan Le****@discussi ons.microsoft.c om> wrote in message
news:67******** *************** ***********@mic rosoft.com...
I've got a general question.
Is it possible to change Registry of a registry Path by a procedure call
or
something like that in .NET.


Feb 7 '06 #3
RegistryKey.Set AccessControl is new in 2.0. For 1.1. you'll have to use
interop (try http://www.pinvoke.net/)...

--
Patrice

"Stephan Leppin" <St***********@ discussions.mic rosoft.com> a écrit dans le
message de news:53******** *************** ***********@mic rosoft.com...
Sorry I misstiped myself.
I want to change the acces rights (read, write etc.) for a specific
registrypath like
"\HKLM\Software \Company\develo pment".
My Question is how can I do this using the .Net Framework?.
"Kevin Spencer" wrote:
Your question is frubasticated. What exactly are you asking?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Stephan Leppin" <Stephan Le****@discussi ons.microsoft.c om> wrote in message news:67******** *************** ***********@mic rosoft.com...
I've got a general question.
Is it possible to change Registry of a registry Path by a procedure call or
something like that in .NET.


Feb 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2634
by: Rohit Santhanam | last post by:
As I am reading the .NET documentation, I get the feeling that Microsoft is trying to get rid of the registry. My understanding is that an application built using .NET does not use the registry at all. So, conceivably as applications are migrated to .NET, the registry could disappear in a future version of Windows. Does anybody out there agree with me? Of course, they might keep the registry for backward compatibility purposes.
7
14843
by: Bob | last post by:
I'm working on a Windows app that needs to write to the Registry HKLM. I keep getting a "System.UnauthorizedAccessException: Cannot write to the registry key." error when running the app. I'm logged in as an Administrator and it's a Windows app. What permission does it need? Here's the code. private void ChangeReg() { string regPath = "SOFTWARE\\Microsoft\\.NETFramework\\AssemblyFolders"; RegistryKey thisKey = Registry.LocalMachine;
4
2458
by: Tony W | last post by:
Hi, I am trying to write a simple application to retrieve data from the Windows registry and insert it into textboxs on a windows form. So far I have one namespace containing two classess. The first class handles the form generation - (this was done using GUI form designer).
7
16533
by: Dennis C. Drumm | last post by:
Can my program access the HKEY_LOCAL_MACHINE/Software section of the registry when being used by a user with restricted rights (not with admin rights)? If so, how? I have a program that functions just fine when run by an administrator but generates an exception when run by a restricted user. The program accesses the HKEY_LOCAL_MACHINE/Software section to set or get application settings that are not user specific. Thanks,
1
3081
by: Daniel Passwater via DotNetMonster.com | last post by:
I'm working on a app that displays according to a registry key value. The user needs the ability to update the display, and hense the registry key (via a click event on a popup menu). This all worked just fine until some users were set up as power-users. I've tried to change the permissions on that key programatically, on the fly, but to no avail. Here's my question: While the user is logged in with limited permissions, will the...
4
9140
by: Kevin L | last post by:
I store some application settings in the registry under HKEY_LOCAL_MACHINE\Software\MyApplication I want to allow full access to this key and subkeys. Currently, I manually change the permissions on the keys. How can I accomplish this through code?
0
870
by: Jay | last post by:
Hey There, I was able to change the access rights to a file through adding an ACE to the DACL of a file. I have two questions that I am still trying to get resolved regarding this: 1). When I reboot the machine, the Access Rights go back to the previous settings, how do I get the modified Access Rights to stick across reboots? 2). Also, is this information kept in the registry? If so, where in the registry is it kept?
7
12134
by: Peter Ritchie | last post by:
I'm writing a Web Service and I would like to add performance counter data for monitoring performance of the Web Service's operations over time and load. The problem is, I get the "Requested registry access is not allowed." SecurityException when I try and create the performance counter category via PerformanceCounterCategory.Create(). I understand the login used to run the Web Service does not have access to the registry keys...
3
18117
by: Dylan Parry | last post by:
Hi folks, I've just got a new machine at work, so I've spent all day copying across all of my work from my old machine. Now I've come across a problem that I've never seen before. I now get the following error when I attempt to run one of my sites: "Access to the registry key 'Global' is denied"
0
10134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9965
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
11297
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10659
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8218
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3508
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.