Solved

Edit the Enum Section of the registry

Posted on 2004-04-20
3
382 Views
Last Modified: 2012-06-21
Hi all, I need to enter a value in HKLM\CurrentControlSet\Enum\<device-type>\<vendor-id>\<sub-value> key (I want to load a filter driver for a device using my program, so I need to add a LowerFilters entry here). I'm using RegSetValueEx() but it is returning error 5. AFAIR this is for ERROR_ACCESS_DENIED. I can enable write permission on the key from regedt32, but I want to implement this in my program. How do I get the permission? I'm assuming I have to use RegSetKeySecurity() but I'm new to windows security and am confused with the 2nd and 3rd parameter. Any suggestions/pointers any1? Thanks in advance.
0
Comment
Question by:tareqsiraj
3 Comments
 

Author Comment

by:tareqsiraj
ID: 10879364
Ok... found it myself using SetupDiSetDeviceRegistryProperty().
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 11227180
PAQed, with points refunded (200)

GhostMod
Community Support Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

830 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